PHP code example of dutchcodingcompany / filament-developer-logins
1. Go to this page and download the library: Download dutchcodingcompany/filament-developer-logins 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/ */
dutchcodingcompany / filament-developer-logins example snippets
// ...
->plugins([
FilamentDeveloperLoginsPlugin::make()
->enabled(app()->environment('local'))
->users([
'Admin' => '[email protected]',
'User' => '[email protected]',
])
]);
// ...
FilamentDeveloperLoginsPlugin::make()
->users(fn () => User::pluck('email', 'name')->toArray())
]);
// ...
FilamentDeveloperLoginsPlugin::make()
->enabled(fn() => app()->environment('local'))
// ...
FilamentDeveloperLoginsPlugin::make()
->switchable(false) // This also accepts a closure.
FilamentDeveloperLoginsPlugin::make()
->column('name')
FilamentDeveloperLoginsPlugin::make()
->modelClass(Admin::class)
FilamentDeveloperLoginsPlugin::make()
->redirectTo('/custom-url')
FilamentDeveloperLoginsPlugin::make()
->redirectTo(fn () => route('custom.route'))