Skip to content

Instantly share code, notes, and snippets.

@pbteja1998
Last active June 14, 2017 19:11
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 pbteja1998/fe30fd96e26a2868b5925c83df041808 to your computer and use it in GitHub Desktop.
Save pbteja1998/fe30fd96e26a2868b5925c83df041808 to your computer and use it in GitHub Desktop.

To install Laracasts Test Dummy, run

$ composer require laracasts/testdummy

We should then register the Service Provider, Laracasts\Generators\GeneratorsServiceProvider in $providers array of config/app.php

To create a migration with create_posts_table as its name and user_id as foreign key, title of type string and body of type text using Schema, run

$ php artisan make:migration create_posts_table --schema="user_id:integer:foreign, title:string, body:text"

Note that for the above command to run, you should have Laracasts TestDummy Installed.

More Details

Laracasts TestDummy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment