I’m using Laravel 5 and I have some problems. When I want to access the login on my subdomain
ErrorException in FileViewFinder.php line 140: View [app] not found. (View: /home1/miweb/public_html/subdomains/dev/resources/views/auth/ login.blade.php)
I don’t understand what is the problem. For example, if I come in without the subdomain the file is found.
This file is on my host. It is very confusing because it works on my localhost.
Could the problem be caused by the subdomain? What is the solution?
As you can see in the source of login.blade.php template, it extends layout which is called
So, probably there’s no
app.blade.php file in
resources/views folder. It should be there in order to display the login form.
I set it as:
@extends('layouts.app'). It works well.
I had the same issue I was following 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 sub folder. I moved it under the resources/views/ and it worked properly.
set it as: @extends(‘app’)
and then we will get it
in previous versions of laravel..master page i.e app.blade.php was present in views folder but in version 5.4 and in upcoming 5.5 its in the separate layouts folder so now code will be @extends(‘layouts.app’)