This is a basic blog created to practice Laravel 6 where you could create a post and attach an image or show an iframe about that post.
.
├── blog # Laravel application source code
├── docker # Docker configuration
├── docker-compose.yml
└── README.md
- Clone this repository to your local machine:
git clone https://github.com/deygordillos/blog-laravel6.git
cd blog-laravel6
- Copy Laravel's .env configuration file and set the environment variables:
cp blog/.env.example blog/.env
Then, ensure that you have variable APP_URL in .env with APP_URL=http://localhost:8180/.
Docker is required. Once you have downloaded it, turn up de container.
This project includes a docker-compose.yml file that sets up Docker with the necessary services (laravel6_app with php 7.4.20 + apache, MySQL database, and phpmyadmin).
- Start the containers:
docker-compose up -d
- Install Laravel dependencies:
docker-compose exec laravel6_app composer install
- Run the database migrations and, optionally, the seeders:
docker-compose exec app php artisan migrate --seed
- You should now be able to access the application at http://localhost:8180.