Laravel5: View [app] not found. resources / views / authorization / login.blade.php

I am using Laravel 5 and I have some problems. When I want to access my subdomain login

-> http://dev.miweb.com/auth/login

He says:

ErrorException in FileViewFinder.php line 140: View [app] not found. (View: /home1/miweb/public_html/subdomains/dev/resources/views/auth/ login.blade.php) 

I do not understand what the problem is. For example, if I enter without a subdomain, the file is found.

-> http://miweb.com/subdomains/dev/resources/views/auth/login.blade.php

This file is on my host. This is very confusing because it works on my localhost.

Could the problem be caused by a subdomain? What is the solution?

thanks

+6
source share
5 answers

As you can see in the source of the login.blade.php template, it extends the layout called app :

 @extends('app') 

So, maybe there is no app.blade.php file in the resources/views folder. He must be there to display the login form.

+20
source

I installed it as: @extends('layouts.app') . It works well.

+2
source

I had the same problem as after the tutorial https://www.flynsarmy.com/2015/02/creating-a-basic-todo-application-in-laravel-5-part-2/ , but I created the app .blade.php inside my subfolder. I moved it under resources / views / and it worked correctly.

0
source

set it as: @extends ('application') and then we get it

0
source

in previous versions of the laravel..master page, i.e. app.blade.php was present in the views folder, but in version 5.4 and upcoming 5.5 it was in a separate layout folder, so now the code will be @extends ('layouts.app')

0
source

Source: https://habr.com/ru/post/983836/


All Articles