Skip to content

Commit dd11958

Browse files
committed
Changelog:
- Added: properties to middleware events - Fixed: autoloaded localization wasn't loaded - Fixed: crud.blade.php for generating crud classes
1 parent cb7fa84 commit dd11958

File tree

6 files changed

+11
-7
lines changed

6 files changed

+11
-7
lines changed

app/Events/AfterAppHealthCheckedEvent.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
namespace App\Events;
44

5+
use Closure;
56
use Illuminate\Broadcasting\InteractsWithSockets;
67
use Illuminate\Foundation\Events\Dispatchable;
8+
use Illuminate\Http\Request;
79
use Illuminate\Queue\SerializesModels;
810

911
class AfterAppHealthCheckedEvent
@@ -15,7 +17,7 @@ class AfterAppHealthCheckedEvent
1517
*
1618
* @return void
1719
*/
18-
public function __construct()
20+
public function __construct( public Closure $next, public Request $request )
1921
{
2022
//
2123
}

app/Events/InstalledStateBeforeCheckedEvent.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
namespace App\Events;
44

5+
use Closure;
56
use Illuminate\Broadcasting\InteractsWithSockets;
67
use Illuminate\Foundation\Events\Dispatchable;
8+
use Illuminate\Http\Request;
79
use Illuminate\Queue\SerializesModels;
810

911
class InstalledStateBeforeCheckedEvent
@@ -15,7 +17,7 @@ class InstalledStateBeforeCheckedEvent
1517
*
1618
* @return void
1719
*/
18-
public function __construct()
20+
public function __construct( public Closure $next, public Request $request )
1921
{
2022
//
2123
}

app/Http/Middleware/CheckApplicationHealthMiddleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function handle( Request $request, Closure $next )
4949
$modules = app()->make( ModulesService::class );
5050
$modules->dependenciesCheck();
5151

52-
AfterAppHealthCheckedEvent::dispatch();
52+
AfterAppHealthCheckedEvent::dispatch( $next, $request );
5353

5454
return $next( $request );
5555
}

app/Providers/LocalizationServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function boot()
3535
protected function loadModuleLocale()
3636
{
3737
$moduleService = app()->make( ModulesService::class );
38-
$active = $moduleService->getEnabled();
38+
$active = $moduleService->getEnabledAndAutoloadedModules();
3939

4040
foreach ( $active as $module ) {
4141
if (

app/Providers/TelescopeServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class TelescopeServiceProvider extends TelescopeApplicationServiceProvider
1414
*/
1515
public function register(): void
1616
{
17-
// Telescope::night();
17+
Telescope::night();
1818

1919
$this->hideSensitiveRequestDetails();
2020

resources/views/generate/crud.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ public function beforeDelete( $namespace, $id, $model ): void
302302
*/
303303
public function getColumns(): array
304304
{
305-
return CrudTable::column(
305+
return CrudTable::columns(
306306
@foreach( $Schema::getColumnListing( $table_name ) as $column )
307307
CrudTable::column(
308308
identifier: '{{ $column }}',
@@ -315,7 +315,7 @@ public function getColumns(): array
315315
/**
316316
* Define row actions.
317317
*/
318-
public function addActions( CrudEntry $entry ): CrudEntry
318+
public function setActions( CrudEntry $entry ): CrudEntry
319319
{
320320
/**
321321
* Declaring entry actions

0 commit comments

Comments
 (0)