You've already forked Epicnabbo-Catalogus-Updated-Daily
56 lines
1.6 KiB
PHP
56 lines
1.6 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Atom;
|
|
|
|
use App\Filament\Resources\Atom\HelpQuestionResource\Pages\CreateHelpQuestion;
|
|
use App\Filament\Resources\Atom\HelpQuestionResource\Pages\EditHelpQuestion;
|
|
use App\Filament\Resources\Atom\HelpQuestionResource\Pages\ListHelpQuestions;
|
|
use App\Filament\Resources\Atom\HelpQuestionResource\Pages\ViewHelpQuestion;
|
|
use Filament\Resources\Resource;
|
|
use Filament\Schemas\Schema;
|
|
use Filament\Tables\Table;
|
|
|
|
class HelpQuestionResource extends Resource
|
|
{
|
|
protected static ?string $model = \App\Models\User::class;
|
|
|
|
protected static bool $shouldRegisterNavigation = false;
|
|
|
|
public static function form(Schema $schema): Schema
|
|
{
|
|
return $schema->components(static::getForm());
|
|
}
|
|
|
|
/**
|
|
* @return array<\Illuminate\Contracts\Support\Htmlable|string>
|
|
*/
|
|
public static function getForm(bool $fromRelation = false): array
|
|
{
|
|
return [];
|
|
}
|
|
|
|
public static function table(Table $table): Table
|
|
{
|
|
return $table->columns(static::getTable());
|
|
}
|
|
|
|
/**
|
|
* @return array<\Filament\Tables\Columns\Column|\Filament\Tables\Columns\ColumnGroup|\Filament\Tables\Columns\Layout\Component>
|
|
*/
|
|
public static function getTable(): array
|
|
{
|
|
return [];
|
|
}
|
|
|
|
public static function getPages(): array
|
|
{
|
|
return [
|
|
'index' => ListHelpQuestions::route('/'),
|
|
'create' => CreateHelpQuestion::route('/create'),
|
|
'view' => ViewHelpQuestion::route('/{record}'),
|
|
'edit' => EditHelpQuestion::route('/{record}/edit'),
|
|
];
|
|
}
|
|
}
|
|
|