Skip to content

Instantly share code, notes, and snippets.

@a-m-dev
Last active August 9, 2019 07:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save a-m-dev/216f673ea18ffe98fece204e81485b04 to your computer and use it in GitHub Desktop.
Save a-m-dev/216f673ea18ffe98fece204e81485b04 to your computer and use it in GitHub Desktop.
# 01 create table
php artisan make:migration create_articles_table --create=articles
# 02 create fake data with seeder
php artisan make:seeder ArticlesTableSeeder
# 03 create factory
php artisan make:factory ArticleFactory
# 04 create modle
php artisan make:model Article
# 05 make tbles
php artisan migrate
# 06 make fake data
php artisan db:seed
now our fake data is been created...
# 07 creating the controller
php artisan make:controller ArticleController --resource
# 08 make resource
php artisan make:resource Article
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment