Add all files

This commit is contained in:
root
2025-11-30 11:57:22 +01:00
parent 2ee51cac4f
commit 044271db3d
1476 changed files with 142544 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
<?php
namespace App\Livewire\Traits;
use Illuminate\Support\Facades\Session;
trait HasNotifications
{
public function bootHasNotifications()
{
if (Session::has('notification')) {
$this->notify(
Session::get('notification')['message'],
Session::get('notification')['type']
);
Session::forget('notification');
}
}
/**
* Notifications
*/
public function notify($message, $type = 'success')
{
$this->dispatch('notify', ['message' => $message, 'type' => $type]);
}
}