diff --git a/app/Events/AfterAppHealthCheckedEvent.php b/app/Events/AfterAppHealthCheckedEvent.php index bbc73c3c4..dfce4c88f 100644 --- a/app/Events/AfterAppHealthCheckedEvent.php +++ b/app/Events/AfterAppHealthCheckedEvent.php @@ -2,8 +2,10 @@ namespace App\Events; +use Closure; use Illuminate\Broadcasting\InteractsWithSockets; use Illuminate\Foundation\Events\Dispatchable; +use Illuminate\Http\Request; use Illuminate\Queue\SerializesModels; class AfterAppHealthCheckedEvent @@ -15,7 +17,7 @@ class AfterAppHealthCheckedEvent * * @return void */ - public function __construct() + public function __construct( public Closure $next, public Request $request ) { // } diff --git a/app/Events/InstalledStateBeforeCheckedEvent.php b/app/Events/InstalledStateBeforeCheckedEvent.php index f139d0ded..6faa9bfbd 100644 --- a/app/Events/InstalledStateBeforeCheckedEvent.php +++ b/app/Events/InstalledStateBeforeCheckedEvent.php @@ -2,8 +2,10 @@ namespace App\Events; +use Closure; use Illuminate\Broadcasting\InteractsWithSockets; use Illuminate\Foundation\Events\Dispatchable; +use Illuminate\Http\Request; use Illuminate\Queue\SerializesModels; class InstalledStateBeforeCheckedEvent @@ -15,7 +17,7 @@ class InstalledStateBeforeCheckedEvent * * @return void */ - public function __construct() + public function __construct( public Closure $next, public Request $request ) { // } diff --git a/app/Http/Middleware/CheckApplicationHealthMiddleware.php b/app/Http/Middleware/CheckApplicationHealthMiddleware.php index 3cab41c50..ecb1f4202 100644 --- a/app/Http/Middleware/CheckApplicationHealthMiddleware.php +++ b/app/Http/Middleware/CheckApplicationHealthMiddleware.php @@ -49,7 +49,7 @@ public function handle( Request $request, Closure $next ) $modules = app()->make( ModulesService::class ); $modules->dependenciesCheck(); - AfterAppHealthCheckedEvent::dispatch(); + AfterAppHealthCheckedEvent::dispatch( $next, $request ); return $next( $request ); } diff --git a/app/Providers/LocalizationServiceProvider.php b/app/Providers/LocalizationServiceProvider.php index 132eb5057..f438c94b6 100644 --- a/app/Providers/LocalizationServiceProvider.php +++ b/app/Providers/LocalizationServiceProvider.php @@ -35,7 +35,7 @@ public function boot() protected function loadModuleLocale() { $moduleService = app()->make( ModulesService::class ); - $active = $moduleService->getEnabled(); + $active = $moduleService->getEnabledAndAutoloadedModules(); foreach ( $active as $module ) { if ( diff --git a/app/Providers/TelescopeServiceProvider.php b/app/Providers/TelescopeServiceProvider.php index 38860045a..c8201dffb 100644 --- a/app/Providers/TelescopeServiceProvider.php +++ b/app/Providers/TelescopeServiceProvider.php @@ -14,7 +14,7 @@ class TelescopeServiceProvider extends TelescopeApplicationServiceProvider */ public function register(): void { - // Telescope::night(); + Telescope::night(); $this->hideSensitiveRequestDetails(); diff --git a/resources/views/generate/crud.blade.php b/resources/views/generate/crud.blade.php index 43624e754..6a6cdd449 100644 --- a/resources/views/generate/crud.blade.php +++ b/resources/views/generate/crud.blade.php @@ -302,7 +302,7 @@ public function beforeDelete( $namespace, $id, $model ): void */ public function getColumns(): array { - return CrudTable::column( + return CrudTable::columns( @foreach( $Schema::getColumnListing( $table_name ) as $column ) CrudTable::column( identifier: '{{ $column }}', @@ -315,7 +315,7 @@ public function getColumns(): array /** * Define row actions. */ - public function addActions( CrudEntry $entry ): CrudEntry + public function setActions( CrudEntry $entry ): CrudEntry { /** * Declaring entry actions