<?php
namespace App\Nova;
use Whitecube\NovaPage\Pages\PageResource;
class Page extends PageResource
{
public static $model = \App\Models\Page::class;
// Custom code
}
Edit I've found declaring a public static $model important as the Laravel\Nova\Rules\Relatable will try and use it when resolving a resource or something like that.
Added Resource files to config to allow extending.
My use case
Controlling fields. Used in conjunction with this PR to set the custom sorting on Nova Page.
Closes
Usage
Edit I've found declaring a
public static $model
important as theLaravel\Nova\Rules\Relatable
will try and use it when resolving a resource or something like that.