laravel-orion
laravel-orion copied to clipboard
Documentation error: Access level to [Controller]::filterableBy() must be public (as in class Orion\Http\Controllers\BaseController)
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
.