×
Clear all filters including search bar
Valeri Tandilashvili's Personal Professional Blog
config/database.php
Route::get('/', function () {
return view('welcome');
});
get
- type of HTTP request
/
- stands for the homepage
welcome
- view file located at resources/views/welcome.blade.php
The route will return welcome
view file contentroutes/web.php
resources/views
folder.
All laravel views use blade
template engine.
Views files contain the word in its name like welcome.blade.php
app/Http/Controllers
folder with plural form like UsersController.php
in Laravel older versions but with singular form like UserController.php
in new versions of Laravelapp
folder (but app`/Models
in newer version of Laravel) with singular form like User.php
/vendor/composer/
directorycomposer dumpautoload / composer dump-autoload
vendor/package
with development modecomposer require --dev illuminate/container
The package will be listed in require-dev inside composer.json
"require-dev": {
"illuminate/container": "^7.25"
}
composer search keyword
composer update vendor/package vendor/package2