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'))

->emptyPanelBackgroundImageUrl('images/login.webp')

->emptyPanelBackgroundImageOpacity('50%')

use Filament\Support\Colors\Color;

->emptyPanelBackgroundColor(Color::Zinc, '300')

use Filament\Support\Colors\Color;

->emptyPanelBackgroundColor(Color::hex('#f0f0f0'))

->showEmptyPanelOnMobile(false)

use DiogoGPinto\AuthUIEnhancer\AuthUIEnhancerPlugin;
$panel
    ->plugins([
        AuthUIEnhancerPlugin::make()
            ->showEmptyPanelOnMobile(false)
            ->formPanelPosition('right')
            ->formPanelWidth('40%')
            ->emptyPanelBackgroundImageOpacity('70%')
            ->emptyPanelBackgroundImageUrl('https://images.pexels.com/photos/466685/pexels-photo-466685.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2')
    ]);

js
content: [
    './vendor/diogogpinto/filament-auth-ui-enhancer/resources/**/*.blade.php',
]