PHP code example of ashrafic / filament-white-label
1. Go to this page and download the library: Download ashrafic/filament-white-label 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/ */
ashrafic / filament-white-label example snippets
use FilamentWhiteLabel\Resources\WhiteLabelSettingsResource;
$panel
->whiteLabel() // wires up branding
->resources([
WhiteLabelSettingsResource::class, // adds the nav item
]);
use FilamentWhiteLabel\Traits\HasWhiteLabel;
class Team extends Model
{
use HasWhiteLabel;
}
bash
composer white-label:install
php artisan migrate