Skip to content

laravel-modules/scaffolding

Repository files navigation

Laravel Scaffolding

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.x or 8.x branch by running git checkout 9.x command.

Deploying To Local Server

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.sh

Otherwise, 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.example file to .env:
      cd ./project
      
      cp .env.example .env
    • Configure database in your .env file:
      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 serve command:
      php artisan serve
  • Go to your browser and visit: http://localhost:8000

Deploying Using Docker Container

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...

About

The laravel scaffolding of laraeast's projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published