Skip to content

yossi-abramov/laravel-blog-migration-factory-seed

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Laravel Blog with Migrations, Model Factories and Seeding

  1. clone repository:
    git clone https://github.com/yossi-abramov/laravel-blog-migration-factory-seed.git
  2. cd /your/project/root
  3. install composer dependencies: composer install
  4. create DB (CREATE DATABASE blog_example;)
  5. edit .env with your DB configs
  6. generate application encryption key: php artisan key:generate
  7. check DB connection with tinker:
    php artisan tinker
    DB::connection()->getPdo()
    exit
  8. run migrations: php artisan migrate
  9. seed db: php artisan db:seed
  10. start server: php artisan serve

Project now runs at: http://localhost:8000

About

A Laravel blog project with DB migrations, model factories and seeding

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published