diff --git a/composer.lock b/composer.lock index b46c628..8cb3896 100644 --- a/composer.lock +++ b/composer.lock @@ -2300,16 +2300,16 @@ }, { "name": "lara-zeus/core", - "version": "v3.0.10", + "version": "v3.0.11", "source": { "type": "git", "url": "https://github.com/lara-zeus/core.git", - "reference": "2b7fa3401288dce85f2e7ff7d54edea6e826ae59" + "reference": "07b64a72ef6d0aa17ee55d8f6145542fb68f8b63" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/lara-zeus/core/zipball/2b7fa3401288dce85f2e7ff7d54edea6e826ae59", - "reference": "2b7fa3401288dce85f2e7ff7d54edea6e826ae59", + "url": "https://api.github.com/repos/lara-zeus/core/zipball/07b64a72ef6d0aa17ee55d8f6145542fb68f8b63", + "reference": "07b64a72ef6d0aa17ee55d8f6145542fb68f8b63", "shasum": "" }, "require": { @@ -2382,7 +2382,7 @@ "type": "github" } ], - "time": "2023-10-29T18:18:31+00:00" + "time": "2023-11-02T12:34:15+00:00" }, { "name": "laravel/framework", diff --git a/database/migrations/create_navigations_table.php.stub b/database/migrations/create_navigations_table.php.stub index 4d52db9..31e2051 100644 --- a/database/migrations/create_navigations_table.php.stub +++ b/database/migrations/create_navigations_table.php.stub @@ -13,13 +13,15 @@ return new class extends Migration */ public function up() { - Schema::create('navigations', function (Blueprint $table) { - $table->id(); - $table->string('name'); - $table->string('handle')->unique(); - $table->longText('items')->nullable(); - $table->timestamps(); - }); + if (!Schema::hasTable('navigations')) { + Schema::create('navigations', function (Blueprint $table) { + $table->id(); + $table->string('name'); + $table->string('handle')->unique(); + $table->longText('items')->nullable(); + $table->timestamps(); + }); + } } /** diff --git a/docs/advanced/customization.md b/docs/advanced/customization.md index d9d98a1..9808deb 100644 --- a/docs/advanced/customization.md +++ b/docs/advanced/customization.md @@ -47,7 +47,7 @@ to render the navigation: you can also copy the `RenderNavItem` class and customize it as you need. -for more information refer to the main plugin [Filament Navigation](https://github.com/ryangjchandler/filament-navigation) +the navigation plugin was originally created by [ryangjchandler](https://github.com/ryangjchandler/filament-navigation). and now it's included in sky plugin. ## themes diff --git a/docs/getting-started/configuration.md b/docs/getting-started/configuration.md index 81c8b71..3e894ef 100644 --- a/docs/getting-started/configuration.md +++ b/docs/getting-started/configuration.md @@ -20,8 +20,6 @@ SpatieLaravelTranslatablePlugin::make() // or if you have more ->defaultLocales(['en', 'pt']), -FilamentNavigation::make(), - SkyPlugin::make() ->navigationGroupLabel('Sky') diff --git a/docs/getting-started/installation.md b/docs/getting-started/installation.md index f3b61a5..7806dc7 100644 --- a/docs/getting-started/installation.md +++ b/docs/getting-started/installation.md @@ -33,7 +33,6 @@ The install command will publish the migrations and the necessary assets for the ```php ->plugins([ SpatieLaravelTranslatablePlugin::make()->defaultLocales([config('app.locale')]), - FilamentNavigation::make(), SkyPlugin::make(), ]) ``` diff --git a/docs/getting-started/upgrade.md b/docs/getting-started/upgrade.md index 6e3b33f..78e958d 100644 --- a/docs/getting-started/upgrade.md +++ b/docs/getting-started/upgrade.md @@ -4,6 +4,10 @@ weight: 100 --- +## upgrade to v3.3 + +remove `FilamentNavigation::make(),` from your panel plugins + ## upgrade to v3.2 In v3.2, I refactored the configuration to separate the frontend configuration from filament-related ones.