Skip to content

Commit

Permalink
Merge pull request #152 from RafaelBlum/slug-resources
Browse files Browse the repository at this point in the history
Slug resources
  • Loading branch information
icarojobs authored Aug 13, 2024
2 parents 68e6aaf + 563348d commit 9c6bb5e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Filament/Resources/CustomerResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class CustomerResource extends Resource

protected static ?string $navigationIcon = 'heroicon-o-wallet';

protected static ?string $slug = 'clientes';

protected static ?string $modelLabel = 'Cliente';

protected static ?string $recordTitleAttribute = 'name';
Expand Down
2 changes: 2 additions & 0 deletions app/Filament/Resources/OrderResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ class OrderResource extends Resource

protected static ?string $activeNavigationIcon = 'heroicon-o-shopping-cart';

protected static ?string $slug = 'pedidos';

protected static ?string $modelLabel = 'Venda';

protected static ?string $pluralModelLabel = 'Vendas';
Expand Down
2 changes: 2 additions & 0 deletions app/Filament/Resources/ProductResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ class ProductResource extends Resource

protected static ?string $activeNavigationIcon = 'heroicon-o-shopping-cart';

protected static ?string $slug = 'produtos';

protected static ?string $modelLabel = 'Produto';

protected static ?string $pluralModelLabel = 'Produtos';
Expand Down
2 changes: 2 additions & 0 deletions app/Filament/Resources/ProductTransactionResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ class ProductTransactionResource extends Resource

protected static ?string $activeNavigationIcon = 'heroicon-o-shopping-cart';

protected static ?string $slug = 'movimentacoes';

protected static ?string $modelLabel = 'Movimentação';

protected static ?string $pluralModelLabel = 'Movimentações';
Expand Down
2 changes: 2 additions & 0 deletions app/Filament/Resources/UserResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class UserResource extends Resource

protected static ?string $activeNavigationIcon = 'heroicon-o-user';

protected static ?string $slug = 'usuarios';

protected static ?string $modelLabel = 'Usuário';

protected static ?string $pluralModelLabel = 'Usuários';
Expand Down

0 comments on commit 9c6bb5e

Please sign in to comment.