Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

StuffedGoat's avatar

L5.1 View [auth.login] not found. (Problem with path of storage)

Hello there, Laravel beginner here!

I've successfully installed Laravel 5.1 via Composer on my local machine. I'm using Windows 7 with XAMPP. Locally everthing works find but when I copy the whole laravel directory to my server and want to access the site I become this error message:

InvalidArgumentException in FileViewFinder.php line 137: 
View [auth.login] not found.

 in FileViewFinder.php line 137
at FileViewFinder->findInPaths('auth.login', array('C:\xampp\htdocs\laravel\resources\views')) in FileViewFinder.php line 79
at FileViewFinder->find('auth.login') in Factory.php line 151

The problem is that he wants to access the local path of my machine. How can I clear this? Hm..

I came across to the post from @houseoflogs in which he said to clear the path in storage/framework/config.php but I cannot find the file. (https://laracasts.com/discuss/channels/general-discussion/view-home-not-found/replies/38850)

Could anyone be so kind and point into the right direction how to solve this little issue?

Thanking you!

Edit:

  • I also cleared the folders cache, sessions, views under laravel/storage/framework
  • Because I have only a shared hoster I can't use Composer or Artisan (php artisan config:clear) so I must make this steps manually in some way
0 likes
7 replies
StuffedGoat's avatar
StuffedGoat
OP
Best Answer
Level 2

Found it!

This file is located unter laravel/bootstrap/cache I just renamed it in config.php_ and now I can access my site.

Hope that will help anybody in the future.

7 likes
pixelpalast's avatar

even php artisan config:clear did not help for me... but maybe it wont be too good to rename that config file?

sid405's avatar

@StuffedGoat Do not do that!!

Laravel 5.1 ships out intentionally without the auth/login and auth/register views, although it has the controllers.

Go to http://laravel.com/docs/5.1/authentication#authentication-quickstart

And create the correct views in resources/views/auth/login.blade.php

<!-- resources/views/auth/login.blade.php -->

<form method="POST" action="/auth/login">
    {!! csrf_field() !!}

    <div>
        Email
        <input type="email" name="email" value="{{ old('email') }}">
    </div>

    <div>
        Password
        <input type="password" name="password" id="password">
    </div>

    <div>
        <input type="checkbox" name="remember"> Remember Me
    </div>

    <div>
        <button type="submit">Login</button>
    </div>
</form>

and resources/views/auth/register.blade.php

<form method="POST" action="/auth/register">
    {!! csrf_field() !!}

    <div>
        Name
        <input type="text" name="name" value="{{ old('name') }}">
    </div>

    <div>
        Email
        <input type="email" name="email" value="{{ old('email') }}">
    </div>

    <div>
        Password
        <input type="password" name="password">
    </div>

    <div>
        Confirm Password
        <input type="password" name="password_confirmation">
    </div>

    <div>
        <button type="submit">Register</button>
    </div>
</form>
1 like
BIG_bu's avatar

Ceckout your path to views folder in app\bootstrap\cache\config.php at section "view"

'view' => 
  array (
    'paths' => 
    array (
      0 => '/home/vagrant/Code/app/resources/views',
    ),
    'compiled' => '/home/vagrant/Code/app/storage/framework/views',
  ),

. this path MUST be at SERVER! not at you local mashine like "D:\WebServers\home\Laravel\app\bootstrap\cache", if you use the homestead. And You must use command like: "php artisan config:clear | cache" at SERVER!

5 likes
vinefreeman's avatar

@BIG_BU - Thanks! this really helped - lost a couple of hours on that one! ran the artisan commands on the server instead of local and bosh!

Please or to participate in this conversation.