PHP code example of diogogpinto / filament-auth-ui-enhancer
1. Go to this page and download the library: Download diogogpinto/filament-auth-ui-enhancer 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/ */
diogogpinto / filament-auth-ui-enhancer example snippets
use DiogoGPinto\AuthUIEnhancer\AuthUIEnhancerPlugin;
->plugins([
AuthUIEnhancerPlugin::make(),
])
$panel
->login()
->registration()
$panel
->login(YourLoginClass::class)
use DiogoGPinto\AuthUIEnhancer\Pages\Auth\Concerns\HasCustomLayout;
class YourLoginClass extends BaseLogin
{
use HasCustomLayout;
}
->formPanelPosition('left')
->mobileFormPanelPosition('bottom')
->formPanelWidth('40%')
use Filament\Support\Colors\Color;
->formPanelBackgroundColor(Color::Zinc, '300')
use Filament\Support\Colors\Color;
->formPanelBackgroundColor(Color::hex('#f0f0f0'))