Update project dependencies and configuration
- Added Filament and Tailwind CSS dependencies in composer.json. - Updated AGENTS.md to include new package versions. - Modified boost.json to include tailwindcss-development skill. - Updated DatabaseSeeder to create an admin user with a password. - Changed the root route to use HomeController instead of a closure. - Adjusted permissions for .gitignore in storage directory.
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Resources\CarouselSlides;
|
||||
|
||||
use App\Filament\Resources\CarouselSlides\Pages\CreateCarouselSlide;
|
||||
use App\Filament\Resources\CarouselSlides\Pages\EditCarouselSlide;
|
||||
use App\Filament\Resources\CarouselSlides\Pages\ListCarouselSlides;
|
||||
use App\Filament\Resources\CarouselSlides\Schemas\CarouselSlideForm;
|
||||
use App\Filament\Resources\CarouselSlides\Tables\CarouselSlidesTable;
|
||||
use App\Models\CarouselSlide;
|
||||
use BackedEnum;
|
||||
use Filament\Resources\Resource;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Table;
|
||||
|
||||
class CarouselSlideResource extends Resource
|
||||
{
|
||||
protected static ?string $model = CarouselSlide::class;
|
||||
|
||||
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedRectangleStack;
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
return CarouselSlideForm::configure($schema);
|
||||
}
|
||||
|
||||
public static function table(Table $table): Table
|
||||
{
|
||||
return CarouselSlidesTable::configure($table);
|
||||
}
|
||||
|
||||
public static function getRelations(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
|
||||
public static function getPages(): array
|
||||
{
|
||||
return [
|
||||
'index' => ListCarouselSlides::route('/'),
|
||||
'create' => CreateCarouselSlide::route('/create'),
|
||||
'edit' => EditCarouselSlide::route('/{record}/edit'),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user