Skip to content

Commit

Permalink
Merge pull request #175 from lara-zeus/add-nav
Browse files Browse the repository at this point in the history
Add nav
  • Loading branch information
atmonshi authored Nov 2, 2023
2 parents f83e55c + 8f22f20 commit 2b9339e
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 16 deletions.
10 changes: 5 additions & 5 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 9 additions & 7 deletions database/migrations/create_navigations_table.php.stub
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
}
}

/**
Expand Down
2 changes: 1 addition & 1 deletion docs/advanced/customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 0 additions & 2 deletions docs/getting-started/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ SpatieLaravelTranslatablePlugin::make()
// or if you have more
->defaultLocales(['en', 'pt']),

FilamentNavigation::make(),

SkyPlugin::make()
->navigationGroupLabel('Sky')

Expand Down
1 change: 0 additions & 1 deletion docs/getting-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
])
```
Expand Down
4 changes: 4 additions & 0 deletions docs/getting-started/upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 2b9339e

Please sign in to comment.