Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
atmonshi committed Nov 2, 2023
1 parent 78f81a9 commit cef3900
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 22 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
6 changes: 3 additions & 3 deletions resources/lang/ar/filament-navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

'select-options' => [
'same-tab' => 'نفس علامة التبويب',
'new-tab' => 'علامة تبويب جديدة'
'new-tab' => 'علامة تبويب جديدة',
],

'items' => [
Expand All @@ -25,7 +25,7 @@
'move-down' => 'تحريك للأسفل',
'indent' => 'إزاحة للداخل',
'dedent' => 'إزاحة للخارج',
'remove' => 'إزالة'
'remove' => 'إزالة',
],

'items-modal' => [
Expand All @@ -34,4 +34,4 @@
'type' => 'النوع',
'btn' => 'حفظ',
],
];
];
6 changes: 3 additions & 3 deletions resources/lang/en/filament-navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

'select-options' => [
'same-tab' => 'Same tab',
'new-tab' => 'New tab'
'new-tab' => 'New tab',
],

'items' => [
Expand All @@ -26,7 +26,7 @@
'move-down' => 'Move down',
'indent' => 'Indent',
'dedent' => 'Dedent',
'remove' => 'Remove'
'remove' => 'Remove',
],

'items-modal' => [
Expand All @@ -35,4 +35,4 @@
'type' => 'Type',
'btn' => 'Save',
],
];
];

0 comments on commit cef3900

Please sign in to comment.