- Download or clone project
git clone https://github.com/AbdoelMadjid/lcps2024.git
- Go to the folder application using cd
- Run
composer install
on your cmd or terminal - Copy .env.example file to .env on root folder. You can type
copy .env.example .env
if using command prompt Windows orcp .env.example .env
if using terminal Ubuntu
cp .env.example .env
- Open your .env file and change the database name (DB_DATABASE)
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=
DB_USERNAME=root
DB_PASSWORD=
- Run
php artisan key:generate
- Run
composer dump-autoload
- Clear your config cache
php artisan optimize:clear
or
php artisan config:clear
- Run
php artisan migrate --seed
- To create a link from the storage directory, run the following command from the project root:
php artisan storage:link
-
Run
npm install
-
Run
npm run build
-
Run
php artisan serve
to running your app in browser
After creating the new permissions use the following commands to update cashed permissions (optional).
php artisan cache:forget spatie.permission.cache
The Laravel framework is open-sourced software licensed under the MIT license.