PHP code example of awesome-nova / filter-card
1. Go to this page and download the library: Download awesome-nova/filter-card 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/ */
awesome-nova / filter-card example snippets
use AwesomeNova\Cards\FilterCard;
use App\Nova\Filters\StateFilter;
public function filters()
{
return [
new StateFilter(),
];
}
public function cards()
{
return [
// Other cards...,
new FilterCard(new StateFilter()),
];
}