MEthod Post in my Login Blade

Hi, I created my own login class, and then a new view,to change the layout,the problem is now that when I submit is sending a POST request, don't know how. If I don't change the $view It works, so the problem is there someplace:
No description
No description
Solution:
If you change your blade like core, is it working? ```html <x-filament-panels::page.simple> // wrap all data inside this
// ......
Jump to solution
6 Replies
Vp
Vp7mo ago
Please no screenshot for code #✅┊rules and show your login logic as well
Barbaracrlp
BarbaracrlpOP7mo ago
sorry but it was too long to write it, the login logic is okay cause if I don't change the view it works,I think I'm missing something in my blade. but i'll send it anyways can't show all of it though if (!$user || !self::verificaContraseña($contraseña, $password)) { $this->throwFailureValidationException(); } // Optionally, you can perform additional checks or actions here if needed if ( ($user instanceof FilamentUser) && (! $user->canAccessPanel(Filament::getCurrentPanel())) ) { Notification::make() ->title('Acceso denegado') ->danger() ->icon('heroicon-o-document-heroicon-o-document-text') ->send(); Filament::auth()->logout(); error_log('no entra por el acceso'); $this->throwFailureValidationException(); } $usuario = Filament::auth()->login($user,false); // If authentication is successful, regenerate the session session()->regenerate(); return app(LoginResponse::class); }
Vp
Vp7mo ago
You got this error after clicking "Login" button?
Barbaracrlp
BarbaracrlpOP7mo ago
yes, when Trying to submit, but only in the blade I created, in the default one it works
Solution
Vp
Vp7mo ago
If you change your blade like core, is it working?
<x-filament-panels::page.simple> // wrap all data inside this

// ...

<x-filament-panels::form wire:submit="authenticate">
{{ $this->form }}

<x-filament-panels::form.actions :actions="$this->getCachedFormActions()" :full-width="$this->hasFullWidthFormActions()" />
</x-filament-panels::form>

//...

</x-filament-panels::page.simple>
<x-filament-panels::page.simple> // wrap all data inside this

// ...

<x-filament-panels::form wire:submit="authenticate">
{{ $this->form }}

<x-filament-panels::form.actions :actions="$this->getCachedFormActions()" :full-width="$this->hasFullWidthFormActions()" />
</x-filament-panels::form>

//...

</x-filament-panels::page.simple>
But this has nothing to do IMO
Barbaracrlp
BarbaracrlpOP7mo ago
I'm going to try that . it works, the problem with using page.simple is that I got now two headings.But I'll figure how to hide one.
Want results from more Discord servers?
Add your server