You've already forked Atomcms-edit
76 lines
1.6 KiB
PHP
Executable File
76 lines
1.6 KiB
PHP
Executable File
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Filament\Resources\Base;
|
|
|
|
use Filament\Resources\Resource;
|
|
|
|
abstract class BaseResource extends Resource
|
|
{
|
|
/**
|
|
* Get the navigation group for the resource.
|
|
* Override in child classes to customize.
|
|
*/
|
|
#[\Override]
|
|
protected static string|\UnitEnum|null $navigationGroup = null;
|
|
|
|
/**
|
|
* Get the navigation icon for the resource.
|
|
* Override in child classes to customize.
|
|
*/
|
|
#[\Override]
|
|
protected static string|\BackedEnum|null $navigationIcon = 'heroicon-o-rectangle-stack';
|
|
|
|
/**
|
|
* Get the navigation sort order for the resource.
|
|
*/
|
|
#[\Override]
|
|
protected static ?int $navigationSort = null;
|
|
|
|
/**
|
|
* Get the form schema for the resource.
|
|
* Override this method in child classes.
|
|
*/
|
|
public static function getFormSchema(): array
|
|
{
|
|
return [];
|
|
}
|
|
|
|
/**
|
|
* Get the table columns for the resource.
|
|
* Override this method in child classes.
|
|
*/
|
|
public static function getTableColumns(): array
|
|
{
|
|
return [];
|
|
}
|
|
|
|
/**
|
|
* Get the filters for the resource.
|
|
* Override this method in child classes.
|
|
*/
|
|
public static function getFilters(): array
|
|
{
|
|
return [];
|
|
}
|
|
|
|
/**
|
|
* Get the actions for the resource.
|
|
* Override this method in child classes.
|
|
*/
|
|
public static function getActions(): array
|
|
{
|
|
return [];
|
|
}
|
|
|
|
/**
|
|
* Get the bulk actions for the resource.
|
|
* Override this method in child classes.
|
|
*/
|
|
public static function getBulkActions(): array
|
|
{
|
|
return [];
|
|
}
|
|
}
|