You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Larave 11 with fortify package for auth is showing error- unable to locate a class or view for component [guest-layout]
I tried to put the guest-layout page inside resources->views->layouts folder as well but it is not working.
What am i doing wrong here? does your package support laravel 11? Do i need to add middleware at bootstrap->app.php?
The text was updated successfully, but these errors were encountered:
I resolved it myself. There is missing folder /app/View/ where component for layouts shall be defined. Missing files are AppLayout.php
`<?php
namespace App\View\Components;
use Illuminate\View\Component;
use Illuminate\View\View;
class AppLayout extends Component
{
/**
* Get the view / contents that represents the component.
*/
public function render(): View
{
return view('layouts.app');
}
}`
and GuestLayout.php
`<?php
namespace App\View\Components;
use Illuminate\View\Component;
use Illuminate\View\View;
class GuestLayout extends Component
{
/**
* Get the view / contents that represents the component.
*/
public function render(): View
{
return view('layouts.guest');
}
}`
I think this folder is only needed for laravel 11
Larave 11 with fortify package for auth is showing error- unable to locate a class or view for component [guest-layout]
I tried to put the guest-layout page inside resources->views->layouts folder as well but it is not working.
What am i doing wrong here? does your package support laravel 11? Do i need to add middleware at bootstrap->app.php?
The text was updated successfully, but these errors were encountered: