Results: 1024
Visiting
/hello
page returns
<h1>
Route::get('/hello', function () {
    return '<h1>Hello World</h1>';
});
Visiting
/hello
page returns text
Hello World
Route::get('/hello', function () {
    return 'Hello World';
});
Database configuration file is located at
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 content
Routes are located in
routes/web.php
All views are located in the
resources/views
folder. All laravel views use
blade
template engine. Views files contain the word in its name like
welcome.blade.php
All controllers are located in the
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 Laravel
All models are located in the
app
folder (but
app`/Models
in newer version of Laravel) with singular form like
User.php
Recreates autoload files inside
/vendor/composer/
directory
composer dumpautoload  /  composer dump-autoload
Installs
vendor/package
with development mode
composer require --dev illuminate/container
The package will be listed in require-dev inside
composer.json
"require-dev": {
        "illuminate/container": "^7.25"
}
Results: 1024