1.Setup - 2IIZ/Laravel GitHub Wiki
Welcome to the Laravel wiki!
Creating project
composer create-project --prefer-dist laravel/laravel projectname
Then you'll have to edit the ".env" file to conect to the DB
Making an authentification
php artisan make:auth
Setting up the migrations
folder -> database/migrations
Creating new model with a migration php artisan make:model Role -m
then you can php artisan migrate
Setting up the relationships
folder -> app/User.php
add info on DB, then test it with tinker :
start tinker -> php artisan tinker
find the first user in the DB -> $user = App\User::find(1);
Check the relationship -> $user->role