composer update vendor/package vendor/package2
composer search keyword
composer search keyword1 keyword2
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"
}
/vendor/composer/
directorycomposer dumpautoload / composer dump-autoload
app
folder (but app`/Models
in newer version of Laravel) with singular form like User.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 Laravelresources/views
folder.
All laravel views use blade
template engine.
Views files contain the word in its name like welcome.blade.php
routes/web.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 content