Login Page Blade Override
I'm looking for the proper way to override the default login blade?
I'm attempting to get the v3 Filament Socialite package up and running and it's instructions are a bit out of date.
It says publish the views and update the login but for one, the v3 docs recommend not publishing all view and even when I tried that, the login.blade.php isn't one of the ones generated.
I copied that blade from the vendor directory into my project but I'm unsure of how to properly configure Filament to use that new login blade.
Thanks!
Solution:Jump to solution
You need to set a new livewire class that extends the exisitng class and just adjust the render function to load the new view
7 Replies
Solution
You need to set a new livewire class that extends the exisitng class and just adjust the render function to load the new view
Ah, do I need to do anything to make Filament use my new Livewire class?
Yes as per the above link
oh right, sorry
Looking up the livewire class I need to extend real quick
Hmm, I set
->login(Login::class)
in my AdminPanelProvider
I copied the login.blade.php
which looks like this (added line is commented out for now)
Login LW class I made looks like
However I get this:
You haven't defined the view as per the primary render class
as you are missing the layout
Right as you said above, I should have set the $view variable and not overridden the render method. Solved now. Well at least this particular part of the issue.
Socialite still isn't working but I'll keep working that separately from this thread.