This file contains some codes and instructions may be useful.
@Auther : Metourni Noureddine
@Description :
($ cmd) => a terminal command,
$ composer global require "laravel/installer"
$ laravel new prj
Or:
$ composer create-project --prefer-dist laravel/laravel gym_algerie "5.5.*"
. Get the project from the github
. run the cmd $ copmoser install
. then $ cp .env.example .env
. then $ php artisan key:generate
$ php artisan serv
$ php artisan migrate
'#1071 - Specified key was too long; max key length is 767 bytes'
1- go to : 'AppServiceProvider.php'
2- put this code :
"
use Illuminate\Support\Facades\Schema;
public function boot()
{
Schema::defaultStringLength(191);
}
"
1- go to /config/database.php
2- put this code in mysql driver options :
'unix_socket' => env('DB_SOCKET', '/Applications/MAMP/tmp/mysql/mysql.sock'),```
. Make shure that you migrate the data base (#4)
. Then use the cmd $ php artisan make:auth