Skip to content

Commit 2b9339e

Browse files
authored
Merge pull request #175 from lara-zeus/add-nav
Add nav
2 parents f83e55c + 8f22f20 commit 2b9339e

File tree

6 files changed

+19
-16
lines changed

6 files changed

+19
-16
lines changed

composer.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

database/migrations/create_navigations_table.php.stub

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@ return new class extends Migration
1313
*/
1414
public function up()
1515
{
16-
Schema::create('navigations', function (Blueprint $table) {
17-
$table->id();
18-
$table->string('name');
19-
$table->string('handle')->unique();
20-
$table->longText('items')->nullable();
21-
$table->timestamps();
22-
});
16+
if (!Schema::hasTable('navigations')) {
17+
Schema::create('navigations', function (Blueprint $table) {
18+
$table->id();
19+
$table->string('name');
20+
$table->string('handle')->unique();
21+
$table->longText('items')->nullable();
22+
$table->timestamps();
23+
});
24+
}
2325
}
2426

2527
/**

docs/advanced/customization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ to render the navigation:
4747

4848
you can also copy the `RenderNavItem` class and customize it as you need.
4949

50-
for more information refer to the main plugin [Filament Navigation](https://github.com/ryangjchandler/filament-navigation)
50+
the navigation plugin was originally created by [ryangjchandler](https://github.com/ryangjchandler/filament-navigation). and now it's included in sky plugin.
5151

5252
## themes
5353

docs/getting-started/configuration.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ SpatieLaravelTranslatablePlugin::make()
2020
// or if you have more
2121
->defaultLocales(['en', 'pt']),
2222

23-
FilamentNavigation::make(),
24-
2523
SkyPlugin::make()
2624
->navigationGroupLabel('Sky')
2725

docs/getting-started/installation.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ The install command will publish the migrations and the necessary assets for the
3333
```php
3434
->plugins([
3535
SpatieLaravelTranslatablePlugin::make()->defaultLocales([config('app.locale')]),
36-
FilamentNavigation::make(),
3736
SkyPlugin::make(),
3837
])
3938
```

docs/getting-started/upgrade.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ weight: 100
44
---
55

66

7+
## upgrade to v3.3
8+
9+
remove `FilamentNavigation::make(),` from your panel plugins
10+
711
## upgrade to v3.2
812

913
In v3.2, I refactored the configuration to separate the frontend configuration from filament-related ones.

0 commit comments

Comments
 (0)