-
It is possibile to customize the layout (only layout not fields) of login page? in which way? thx |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 9 replies
-
Via css? |
Beta Was this translation helpful? Give feedback.
-
Hi there. Just for clarification, this is the full process you need to perform in order to replace the login template with your own:
Beware to overwrite the $view static variable (calling a view() function won't work). That's it! |
Beta Was this translation helpful? Give feedback.
-
Hi guys 🙂 |
Beta Was this translation helpful? Give feedback.
-
I get this error Here is the class I created <?php
namespace App\Filament\Pages\Auth;
use Filament\Forms\Form;
use Filament\Pages\Auth\Login as BaseLogin;
use Filament\Pages\Concerns\HasSubNavigation;
class Login extends BaseLogin
{
protected static string $view = 'filament.pages.auth.login';
} |
Beta Was this translation helpful? Give feedback.
-
Hi guys i can confim that this is one of the option to do if you want to customize the login page views :
Again depend on how much is the customization that you need, for me this is enough. ![]() Or if you want to change the look and feel using css you can refer to this tutorials : |
Beta Was this translation helpful? Give feedback.
The best way is to extend login page, do not change the class methods and change the property $view to a new blade view.
Please refer to Customize the authentication features in https://filamentphp.com/docs/3.x/panels/users#customizing-the-authentication-features