PHP code example of afea / filament-partners

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

    

afea / filament-partners example snippets


->plugin(\Afea\Cms\Partners\Filament\PartnersPlugin::make())

use Afea\Cms\Partners\Models\Partner;

$partners = Partner::query()->active()->ordered()->get();

use Afea\Cms\Partners\Models\Reference;

$logos = Reference::query()->active()->onHomepage()->ordered()->get();

class Partner extends \Afea\Cms\Partners\Models\Partner
{
    public function scopeTopTier($q)
    {
        return $q->active()->where('order', '<=', 5);
    }
}

'models' => ['partner' => \App\Models\Partner::class],