In this post, we are going to explain how to create new routes in Laravel, what they are and how to use the controllers and views.
If we access to the directory where we created our new Laravel project, we will see that there are many directories. Each directory has many files with its functionality.
- app: where are all the classes of our app. (controllers, models, etc.)
- bootstrap: contains what is necessary to bootstrap the framework
- config: contains the configuration files
- database: contains the migrations and seeds
- public: contains the index.php that is the file where all the requests go
- resources: contains the views and no-compiled assets (JS, CSS, etc)
- routes: contains your app routes
- storage: contains cache and logs
- tests: contains tests
- vendor: contains the dependencies
Continue reading “Laravel 5.4 #2 : Routes, controllers and views”