<?php
namespace App\Filament\Resources;
use App\Filament\Resources\MovieResource\Pages;
use App\Models\Movie;
use Filament\Forms\Components\Section;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Form;
use Filament\Forms\Set;
use Filament\Resources\Resource;
use Filament\Tables;
use Filament\Tables\Actions\Action;
use Filament\Tables\Columns\ImageColumn;
use Filament\Tables\Columns\TextColumn;
use Filament\Tables\Table;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Str;
use Livewire\Component as Livewire;
class MovieResource extends Resource
{
protected static ?string $model = Movie::class;
protected static ?string $navigationIcon = 'heroicon-o-rectangle-stack';
public static function form(Form $form): Form
{
return $form
->schema([
// ...
]);
}
public static function table(Table $table): Table
{
// ...
}
public static function getRelations(): array
{
return [
//
];
}
public static function getPages(): array
{
return [
'index' => Pages\ListMovies::route('/'),
'view' => Pages\ViewMovie::route('/{record}'),
'create' => Pages\CreateMovie::route('/create'),
// 'edit' => Pages\EditMovie::route('/{record}/edit'),
];
}
}