Skip to content

Instantly share code, notes, and snippets.

View JoDeveloper's full-sized avatar
🔄
MERGE CONFLICT WITH THE UNIVERSE

Yousuf Omer JoDeveloper

🔄
MERGE CONFLICT WITH THE UNIVERSE
View GitHub Profile
class CompanyView extends GetView<CompanyController> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Stack(
children: [
Container(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
@greenspace10
greenspace10 / AppServiceProvider.php
Created June 14, 2021 17:16
Laravel, Livewire, Alpine JS Toast Notifications
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
Component::macro('notify', function ($message, $title = '', $type = 'success') {
$this->dispatchBrowserEvent('notify', ['message' => $message, 'title' => $title, 'type' => $type]);
});
@alfajrimutawadhi
alfajrimutawadhi / deploy-laravel-en.md
Created June 16, 2023 06:19
How to deploy Laravel to server (VPS)

How to deploy Laravel application to Virtual Private Server (VPS)


Some things you need :

  • Laravel project
  • VPS / Virtual Private Server
  • Domain (if any)

Here's how to deploy your Laravel application to the server

  1. Put your Laravel project into source code management (github/gitlab/others)
    Here I will use my company-management reporsitory.