diff --git a/src/Laravel/database/migrations/2020_10_04_115514_create_moonshine_roles_table.php b/src/Laravel/database/migrations/2020_10_04_115514_create_moonshine_roles_table.php index 2b8053cca..20f6fd12a 100644 --- a/src/Laravel/database/migrations/2020_10_04_115514_create_moonshine_roles_table.php +++ b/src/Laravel/database/migrations/2020_10_04_115514_create_moonshine_roles_table.php @@ -6,8 +6,7 @@ use Illuminate\Support\Facades\Schema; use MoonShine\Laravel\Models\MoonshineUserRole; -return new class extends Migration -{ +return new class () extends Migration { /** * Run the migrations. */ diff --git a/src/Laravel/database/migrations/2020_10_05_173148_create_moonshine_tables.php b/src/Laravel/database/migrations/2020_10_05_173148_create_moonshine_tables.php index 3acf3413f..247bd9390 100644 --- a/src/Laravel/database/migrations/2020_10_05_173148_create_moonshine_tables.php +++ b/src/Laravel/database/migrations/2020_10_05_173148_create_moonshine_tables.php @@ -5,8 +5,7 @@ use Illuminate\Support\Facades\Schema; use MoonShine\Laravel\Models\MoonshineUserRole; -return new class extends Migration -{ +return new class () extends Migration { /** * Run the migrations. */ diff --git a/src/Laravel/database/migrations/9999_12_20_173629_create_notifications_table.php b/src/Laravel/database/migrations/9999_12_20_173629_create_notifications_table.php index 13993d056..fe4f4a5db 100644 --- a/src/Laravel/database/migrations/9999_12_20_173629_create_notifications_table.php +++ b/src/Laravel/database/migrations/9999_12_20_173629_create_notifications_table.php @@ -4,15 +4,14 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -return new class extends Migration -{ +return new class () extends Migration { public function up(): void { - if(!config('moonshine.use_database_notifications', false)) { - return; + if (! config('moonshine.use_database_notifications', false)) { + return; } - if(!Schema::hasTable('notifications')) { + if (! Schema::hasTable('notifications')) { Schema::create('notifications', static function (Blueprint $table): void { $table->uuid('id')->primary(); $table->string('type'); diff --git a/src/Laravel/lang/en/ui.php b/src/Laravel/lang/en/ui.php index 292623b28..fdaa6d5ab 100644 --- a/src/Laravel/lang/en/ui.php +++ b/src/Laravel/lang/en/ui.php @@ -74,8 +74,8 @@ 'import' => [ 'imported' => 'Imported', 'file_required' => 'File is required', - 'extension_not_supported' => 'File extension not supported' - ] + 'extension_not_supported' => 'File extension not supported', + ], ], 'choices' => [ 'no_results' => 'No results found', @@ -86,5 +86,5 @@ 'add_item' => 'Press Enter to add ":value"', 'max_item' => 'Only :count values can be added', 'remove_item' => 'Remove item', - ] + ], ]; diff --git a/src/Laravel/routes/moonshine.php b/src/Laravel/routes/moonshine.php index 7b4ce30ee..f7b197e7f 100644 --- a/src/Laravel/routes/moonshine.php +++ b/src/Laravel/routes/moonshine.php @@ -36,7 +36,7 @@ ->name('profile.store'); } - $router->middleware($authMiddleware)->group(function () use($pagePrefix): void { + $router->middleware($authMiddleware)->group(function () use ($pagePrefix): void { /** * @see EndpointsContract::home() */ diff --git a/src/Laravel/src/Http/Controllers/MoonShineController.php b/src/Laravel/src/Http/Controllers/MoonShineController.php index af03b2f28..f99b9aa31 100644 --- a/src/Laravel/src/Http/Controllers/MoonShineController.php +++ b/src/Laravel/src/Http/Controllers/MoonShineController.php @@ -8,9 +8,9 @@ use Illuminate\Routing\Controller as BaseController; use MoonShine\Contracts\Core\PageContract; use MoonShine\Contracts\UI\TableBuilderContract; -use MoonShine\Laravel\Pages\QuickPage; use MoonShine\Laravel\Http\Responses\MoonShineJsonResponse; use MoonShine\Laravel\Notifications\MoonShineNotificationContract; +use MoonShine\Laravel\Pages\QuickPage; use MoonShine\Laravel\Traits\Controller\InteractsWithAuth; use MoonShine\Laravel\Traits\Controller\InteractsWithUI; use MoonShine\Support\Enums\ToastType;