laravel-orion icon indicating copy to clipboard operation
laravel-orion copied to clipboard

Documentation error: Access level to [Controller]::filterableBy() must be public (as in class Orion\Http\Controllers\BaseController)

Open PatFox opened this issue 11 months ago • 0 comments

Hi,

A small issue, this one -- the documentation gives the following example code for Controller::filterableBy()

protected function filterableBy() : array
    {
        return ['id', 'title', 'user.id', 'meta.source_id', 'created_at'];
    }

...which results in an error -- Access level to [Controller]::filterableBy() must be public (as in class Orion\Http\Controllers\BaseController)

The same goes for e.g. exposedScopes(), searchableBy() etc. So the examples should be updated to have these methods set as public.

PatFox avatar Mar 14 '24 10:03 PatFox