Laravel - View [.site.Home.index] not found

Asked

Viewed 308 times

0

I opened my localhost today to continue to start my project and I will have this error in all the pages I try to access, yesterday before closing the pages was working can anyone help me? error

View [.site.Home.index] not found.

inserir a descrição da imagem aqui

web php.

Route::get('/', 'SiteController@index');
Route::get('Contato', 'SiteController@Contato');
Route::get('Dicas', 'SiteController@Dicas');

sitecontroller:

public function Dicas(){

        session_start();
        return view('/site.Dicas.index') ;
    }
    public function Regulamento(){
        session_start();
        return view('/site.Regulamento.index') ;
    }
    public function Termos(){
        session_start();
        return view('site.Termos.index') ;
    }
    public function Tutorial(){
        session_start();
        return view('/site.Tutorial.index') ;
    }
  • Try using the command Ctrl+Shift+F and search for site.Home.index. Maybe you used the file and ended up deleting accidentally

  • Am I new to the Laravel where I would put this command? @Matheusreis

  • I forgot to mention I was supposed to do this on VSCode. It has the option to search in all files within one workspace

  • @Matheusreis the site.Home.index exists and what was the command q was to run? think q vc edited

  • Ctrl+Shift+F, it locates the text within all your files

  • No bar and show where the view is

  • Why calling Sessions like that is wrong

  • @Matheusreis put in and he found the site.Home.index on my Sitecontroller page because I give the return view

  • @Virgilionovic already took the bar and still the same error, and onte was working with the / usually, as it is called the Session correctly?

  • There’s a lot of things out of place Sessions will depend on if you need them

Show 5 more comments

1 answer

1


I was having the same mistake once in a project the reason was that I had accidentally moved my folder resources elsewhere check your Folder resources is at the root of your project folder

  • Thank you, by the way, for the visualcode

Browser other questions tagged

You are not signed in. Login or sign up in order to post.