Loan Order
This commit is contained in:
1 parent
bf483a206c
commit
3a83fb157e
11 files changed
+87
-53
No files matched your search
@@ -3,6 +3,7 @@
|
||||
namespace App\Providers;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Support\Facades\Event;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class AppServiceProvider extends ServiceProvider
|
||||
@@ -21,5 +22,9 @@ public function register(): void
|
||||
public function boot(): void
|
||||
{
|
||||
Model::shouldBeStrict(! app()->isProduction());
|
||||
|
||||
Event::listen(['eloquent.created: *', 'eloquent.updated: *', 'eloquent.deleted: *'], function(string $eventName, array $data) {
|
||||
storeResourceEvent($eventName, $data, request());
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user