2
votes

When i m executing PHP artisan migrate I'm getting following error

C:\xampp\htdocs\Social>php artisan migrate help

[ErrorException]
include(C:\xampp\htdocs\Social\vendor\composer/../../app/Http/Controllers/A uth/AuthController.php): failed to open stream: No such file or directory

C:\xampp\htdocs\Social>php artisan migrate

[ErrorException]
include(C:\xampp\htdocs\Social\vendor\composer/../../app/Http/Controllers/A uth/AuthController.php): failed to open stream: No such file or directory

C:\xampp\htdocs\Soci

how to solve this problem please help???

2

2 Answers

0
votes

It looks like you're trying to use Laravel auth system by adding Auth::routes(); (Laravel 5.3+) or Route::auth(); (Laravel 5.2) to the routes file, but you didn't create controllers and views. So, you'll need to remove the line from the web.php and run this command:

php artisan make:auth

After that put Auth::routes(); back to the web.php. Or Route::auth(); to the routes.php if you're using Laravel 5.2 and lower.

https://laravel.com/docs/5.4/authentication#authentication-quickstart

0
votes

Run composer install in your root project folder (or php composer.phar install)