PHP code example of marcoraddatz / filter-card

1. Go to this page and download the library: Download marcoraddatz/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/ */

    

marcoraddatz / 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()),
    ];
}