New custom login page not working according to documentation. Please help

Sure I am forgetting something obvious but cannot see what. I want to create a completely new login page form, so I have done this: 1.- Create a new page and blade view with ==> php artisan make:filament-page Auth/Login 2. - Changed the Login class like this:
use Filament\Pages\Auth\Login as FilamentLogin;

class Login extends FilamentLogin
{
protected static ?string $navigationIcon = 'heroicon-o-document-text';

protected static string $view = 'filament.pages.auth.login';
}
use Filament\Pages\Auth\Login as FilamentLogin;

class Login extends FilamentLogin
{
protected static ?string $navigationIcon = 'heroicon-o-document-text';

protected static string $view = 'filament.pages.auth.login';
}
3. - In AdminPanelProvider changed the ->login() for this => ->login(Login::class) and imported the class with:
use Filament\Pages\Auth\Login;
use Filament\Pages\Auth\Login;
But I can see no changes at all. I have added some text for testing in my view located at: resources\views\filament\pages\auth\login.blade.php Any ideas of what I am doing wrong?? I am using Filament v3.2.41 Thank you very much.
Solution:
Oh. Your namespace is wrong in your panel provider. Use App\Filament\Pages\Auth\Login;...
Jump to solution
7 Replies
awcodes
awcodes9mo ago
Looks ok to me. View cache maybe?
Albert Lens
Albert LensOP9mo ago
What do you mean with view cache, please? I have run PHP cache clear I'll try this when I'm back in the office: php artisan view:clear Bad luck! Nothing happens after running => php artisan view:clear and even => php artisan optimize:clear I see the same login page with no addings of my customization. Any ideas, please?
awcodes
awcodes9mo ago
Do you have multiple panels by any chance?
Albert Lens
Albert LensOP9mo ago
Nope. Only 1.
Solution
awcodes
awcodes9mo ago
Oh. Your namespace is wrong in your panel provider. Use App\Filament\Pages\Auth\Login;
Albert Lens
Albert LensOP9mo ago
Tks. That was it. I did not see it looking at it a thousand times. Thank you. Anyhow, now I have other problems with that login custom form that I will comment later this next week. Not urgent. Tks again.
lazydog
lazydog9mo ago
hi @awcodes I have same issue, no changes on my custom login page. I can assure you that my namespaces are all correct. I am using multiple panels by the way. I also followed what @Albert Lens did I've tried with another project and it works. Need to dig deeper why on my other project did not work.
Want results from more Discord servers?
Add your server