mardi 28 mars 2017

Laravel 5.4 Register notfoundhttpexception

I created a new laravel 5.4 Project + auth.

These are the steps I did.

  1. laravel new app
  2. laravel make:auth
  3. php artisan migrate

Now if I try to Register I get following error:

notfoundhttpexception in routecollection.php line 161

The Redirect in my RegisterController Looks like this:

protected $redirectTo = '/home';

and the home.blade.php file exists under ressources/views.

If I try to Change the URL to my main page I get this error:

View [login] not found

The user is still created. if I delete the user the error view[Login] dissappears.

My routes:

Auth::routes();

Route::get('/', 'HomeController@index'); // @index Returns to 'login'

But I still get the error any ideas?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire