Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I'm using Laravel 5 and I have some problems. When I want to access the login on my subdomain

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

it 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 don't understand what is the problem. For example, if I come in without the subdomain the file is found.

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

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?

Thank you

like image 449
lHoLlowMaNl Avatar asked Mar 15 '15 23:03

lHoLlowMaNl


2 Answers

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

@extends('app')

So, probably there's no app.blade.php file in resources/views folder. It should be there in order to display the login form.

like image 190
Limon Monte Avatar answered Nov 20 '22 06:11

Limon Monte


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

like image 2
hrboy Avatar answered Nov 20 '22 05:11

hrboy