--------------------------------------------------------------------------------------
The lastest version of Laravel doesn't have a routes.php file.
This 'routes.php' file was located in \app\Http in the older versions.
In the newer version, Laravel 5.3, we have a folder named 'routes', where we can find the following files:
api.php
console.php
web.php
For this new version, the routes for your controllers, you can put inside web.php file
See the documentation about routing here
https://laravel.com/docs/5.3/routing#basic-routing
The video lesson you are watching may be outdated.
--------------------------------------------------------------------------------------
2. Could not open input file: artisan
--------------------------------------------------------------------------------------
You need to first create Laravel project and if you already have one you need to go to this project dir using cd command in terminal for example cd myproject.
Now you will be able to run any artisan commands, for example running php artisan will display you list of available commands.
1. Missing routes.php File in New Laravel Project
--------------------------------------------------------------------------------------The lastest version of Laravel doesn't have a routes.php file.
This 'routes.php' file was located in \app\Http in the older versions.
In the newer version, Laravel 5.3, we have a folder named 'routes', where we can find the following files:
api.php
console.php
web.php
For this new version, the routes for your controllers, you can put inside web.php file
See the documentation about routing here
https://laravel.com/docs/5.3/routing#basic-routing
The video lesson you are watching may be outdated.
--------------------------------------------------------------------------------------
2. Could not open input file: artisan
--------------------------------------------------------------------------------------
You need to first create Laravel project and if you already have one you need to go to this project dir using cd command in terminal for example cd myproject.
Now you will be able to run any artisan commands, for example running php artisan will display you list of available commands.
Comments
Post a Comment