Reputation: 11
PS C:\xampp\htdocs\articles>
PS C:\xampp\htdocs\articles> $php artisan make: migration create_articles_table --create=articles
At line:1 char:6
+ $php artisan make: migration create_articles_table --create=articles
+ ~~~~~~~
Unexpected token 'artisan' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken
Upvotes: 0
Views: 194
Reputation: 622
There should be no space in between make:
and migration
. In order to create a table you do not need to write --create
again.
Try the below command on your command prompt.
php artisan make:migration create_articles_table
Upvotes: 1