git clone <GitHub Repository URL>
cd <Cloned project name>
composer install
composer update
cp .env.example .env
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=YourDatabaseName
DB_USERNAME=YourUsername
DB_PASSWORD=YourPassword
php artisan key:generate
php artisan migrate
php artisan serve
php artisan serve --port=8080
http://localhost:8000
If you encounter the error:
Illuminate\Database\QueryException SQLSTATE[42000]: Syntax
error or access violation: 1071 Specified key was too long; max
key length is 1000 bytes
Add the following code to the boot
method in
App\Providers\AppServiceProvider
:
use Illuminate\Support\Facades\Schema; public function boot():
void { Schema::defaultStringLength(191); }