init
This commit is contained in:
232 files changed
+25416
No files matched your search
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Resources\BazaarReviews;
|
||||
|
||||
use App\Filament\Resources\BazaarReviews\Pages\ListBazaarReviews;
|
||||
use App\Filament\Resources\BazaarReviews\Pages\ViewBazaarReview;
|
||||
use App\Filament\Resources\BazaarReviews\Schemas\BazaarReviewForm;
|
||||
use App\Filament\Resources\BazaarReviews\Schemas\BazaarReviewInfolist;
|
||||
use App\Filament\Resources\BazaarReviews\Tables\BazaarReviewsTable;
|
||||
use App\Models\BazaarReview;
|
||||
use BackedEnum;
|
||||
use Filament\Resources\Resource;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Table;
|
||||
use UnitEnum;
|
||||
|
||||
class BazaarReviewResource extends Resource
|
||||
{
|
||||
protected static ?string $model = BazaarReview::class;
|
||||
|
||||
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedRectangleStack;
|
||||
|
||||
protected static string|UnitEnum|null $navigationGroup = 'Cafe Bazaar';
|
||||
|
||||
protected static ?string $navigationLabel = 'Reviews';
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
return BazaarReviewForm::configure($schema);
|
||||
}
|
||||
|
||||
public static function infolist(Schema $schema): Schema
|
||||
{
|
||||
return BazaarReviewInfolist::configure($schema);
|
||||
}
|
||||
|
||||
public static function table(Table $table): Table
|
||||
{
|
||||
return BazaarReviewsTable::configure($table);
|
||||
}
|
||||
|
||||
public static function getRelations(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
|
||||
public static function getPages(): array
|
||||
{
|
||||
return [
|
||||
'index' => ListBazaarReviews::route('/'),
|
||||
'view' => ViewBazaarReview::route('/{record}'),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user