*/ class $RESOURCE_NAME_SINGULAR$ extends Resource { /** * The model the resource corresponds to. * * @var class-string<\$MODEL_NAMESPACE$> */ public static $model = \$MODEL_NAMESPACE$::class; /** * The single value that should be used to represent the resource when being displayed. * * @var string */ public static $title = 'id'; /** * The columns that should be searched. * * @var array */ public static $search = [ 'id', ]; /** * The relationships that should be eager loaded on index queries. * * @var array */ // public static $with = []; /** * Get the displayable label of the resource. */ public static function label(): string { return __('$MODEL_NAME_PLURAL$'); } /** * Get the displayable singular label of the resource. */ public static function singularLabel(): string { return __('$MODEL_NAME_SINGULAR$'); } /** * Get the fields displayed by the resource. * * @param \Laravel\Nova\Http\Requests\NovaRequest $request * @return array */ public function fields(NovaRequest $request): array { return [ ID::make('id')->sortable(), ]; } }