notakebaks
notakebaks
FFilament
Created by Bruno Pereira on 8/3/2023 in #❓┊help
Missing files running php artisan vendor:publish --tag="filament-views" on filament v3
And just to close the loop, I tried using the render hook as well by simply chaining it to my panel in the AdminPanelProvider:
class AdminPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->default()
->id('admin')
->path('admin')
->login()
->renderHook(
'panels::auth.login.form.after',
fn (): View => view('login'),
)
...
class AdminPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->default()
->id('admin')
->path('admin')
->login()
->renderHook(
'panels::auth.login.form.after',
fn (): View => view('login'),
)
...
57 replies
FFilament
Created by Bruno Pereira on 8/3/2023 in #❓┊help
Missing files running php artisan vendor:publish --tag="filament-views" on filament v3
Thanks again
57 replies
FFilament
Created by Bruno Pereira on 8/3/2023 in #❓┊help
Missing files running php artisan vendor:publish --tag="filament-views" on filament v3
Early adopter till I die!
57 replies
FFilament
Created by Bruno Pereira on 8/3/2023 in #❓┊help
Missing files running php artisan vendor:publish --tag="filament-views" on filament v3
Thanks for the help! I really appreciate it
57 replies
FFilament
Created by Bruno Pereira on 8/3/2023 in #❓┊help
Missing files running php artisan vendor:publish --tag="filament-views" on filament v3
Even better
57 replies
FFilament
Created by Bruno Pereira on 8/3/2023 in #❓┊help
Missing files running php artisan vendor:publish --tag="filament-views" on filament v3
Of course, in this case I would copy the Filament login view, since I want all of it just with the addition of a button for Google (or whichever OAuth provider)
57 replies
FFilament
Created by Bruno Pereira on 8/3/2023 in #❓┊help
Missing files running php artisan vendor:publish --tag="filament-views" on filament v3
Then in the AdminPanelProvider, I just passed that new custom Login class to the method
class AdminPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->default()
->id('admin')
->path('admin')
->login(Login::class)
... etc
class AdminPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->default()
->id('admin')
->path('admin')
->login(Login::class)
... etc
57 replies
FFilament
Created by Bruno Pereira on 8/3/2023 in #❓┊help
Missing files running php artisan vendor:publish --tag="filament-views" on filament v3
First, I created a simple PHP class and had it extend the Filament login class. Then I overrode the view string:
<?php

namespace App\Filament\Pages\Auth;

use Filament\Pages\Auth\Login as AuthLogin;

class Login extends AuthLogin {

/**
* @var view-string
*/
protected static string $view = 'login';

}
<?php

namespace App\Filament\Pages\Auth;

use Filament\Pages\Auth\Login as AuthLogin;

class Login extends AuthLogin {

/**
* @var view-string
*/
protected static string $view = 'login';

}
57 replies
FFilament
Created by Bruno Pereira on 8/3/2023 in #❓┊help
Missing files running php artisan vendor:publish --tag="filament-views" on filament v3
In terms of just pointing to a different view, it worked like a charm.. Going to post what I did for the quick mockup.. What are the tags again for code snippets? ☺️
57 replies
FFilament
Created by Bruno Pereira on 8/3/2023 in #❓┊help
Missing files running php artisan vendor:publish --tag="filament-views" on filament v3
@coolmanpt - Once I get this working I'll let you know what I did.. maybe that would bring V3 back into play for you.
57 replies
FFilament
Created by Bruno Pereira on 8/3/2023 in #❓┊help
Missing files running php artisan vendor:publish --tag="filament-views" on filament v3
Ah.. I've seen some mention of that when researching so I'll continue down that path. Thanks for the quick response!
57 replies
FFilament
Created by Bruno Pereira on 8/3/2023 in #❓┊help
Missing files running php artisan vendor:publish --tag="filament-views" on filament v3
@Filament I'm guessing it's by design, but in V3 we are no longer able to publish the login page views so we can edit. Is there an "official" way to add things like Socialite links as a login method?
57 replies
FFilament
Created by Bruno Pereira on 8/3/2023 in #❓┊help
Missing files running php artisan vendor:publish --tag="filament-views" on filament v3
😭
57 replies
FFilament
Created by Bruno Pereira on 8/3/2023 in #❓┊help
Missing files running php artisan vendor:publish --tag="filament-views" on filament v3
Hi @coolmanpt , were you ever able to find a solution for this? I'm trying to do the same thing.
57 replies