PHP code example of sereny / nova-searchable-filter
1. Go to this page and download the library: Download sereny/nova-searchable-filter library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sereny / nova-searchable-filter example snippets
// app/Nova/User.php
use Sereny\NovaSearchableFilter\SearchableFilter
/**
* Get the filters available for the resource.
*
* @param \Laravel\Nova\Http\Requests\NovaRequest $request
* @return array
*/
public function filters(Request $request)
{
return [
SearchableFilter::make(__('Departament'), 'department')
];
}