Skip to content

zahra-ove/blog_website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

to run the application:

- run `docker-compose up -d --build` in ./docker directory of the project
- run `composer install`
- run `php artisan key:generate`
- in .env file paste these lines:
        DB_CONNECTION=mysql
        DB_HOST=mysql_db
        DB_PORT=3306
        DB_DATABASE=blog_db
        DB_USERNAME=zizi
        DB_PASSWORD=123456

=========================================

to start all container for the first time, just type:\

docker-compose up -d --build

to start all containers afterward:

docker-compose up -d

to stop and remove all container:

docker-compose down

to create a contorller as api controller with its form requests:

`php artisan make:controller --api --requests`

for dropping all tables and again creating them and seeding them:

`php artisan migrate:fresh --seed`

About

Implementing a blog by Laravel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages