The laravel scaffolding of our projects.
This project using laravel 10.x if you still using laravel 9.x or 8.x you should checkout to
9.xor8.xbranch by runninggit checkout 9.xcommand.
If you use valet just execute the init.sh file to configure your environment automatically.
git clone https://github.com/laravel-modules/scaffolding.git my-app
cd my-app
bash ./init.shOtherwise, you should configure your environment manually by the following steps:
-
Clone the project to your local server using the following command:
git clone https://github.com/laravel-modules/scaffolding.git my-app
-
Go to the project path and configure your environment:
- Copy the
.env.examplefile to.env:cd ./project cp .env.example .env - Configure database in your
.envfile:DB_DATABASE=project DB_USERNAME=root DB_PASSWORD=
- Install composer packages using the following command:
composer install
- Generate the project key using the following artisan command:
php artisan key:generate
- Migrate the database tables and dummy data:
php artisan migrate --seed
- Run the project in your browser using
artisan servecommand:php artisan serve
- Copy the
-
Go to your browser and visit: http://localhost:8000
cp .env.example .env
docker-compose run --rm artisan key:generate
docker-compose run --rm artisan storage:link --force
docker-compose run --rm artisan migrate --seed
docker-compose up # turn on all services...-
To access the project go to your browser and visit: http://localhost:8080
-
To access phpmyadmin go to your browser and visit: http://localhost:8088
-
To access mailhog go to your browser and visit: http://0.0.0.0:8025
-
Default Admin Credentials:
- Email: admin@demo.com
- Password: password