1. Go to this page and download the library: Download outl1ne/nova-input-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/ */
outl1ne / nova-input-filter example snippets
use Outl1ne\NovaInputFilter\InputFilter;
public function filters(Request $request)
{
return [
InputFilter::make()->forColumns(['email'])->withName('Email'),
// Or
InputFilter::make(['email'], 'email'),
];
}
use Outl1ne\NovaInputFilter\InputFilter;
class ExtendedInputFilter extends InputFilter
{
public function apply(Request $request, $query, $search)
{
return $query->where('email', 'like', "%$search%");
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.