onecentlin / laravel5-snippets-vscode

Laravel snippets for Visual Studio Code (Support Laravel 5 and above)
MIT License
36 stars 19 forks source link

Schema create-table should include timestamps #2

Closed minthemiddle closed 7 years ago

minthemiddle commented 7 years ago

Right now, Schema:create-table will expand to a function with $table->increments('id'). However, every Laravel table should now include a timestamps column as well.

So you should just add this line to the expansion:

$table->timestamps();

onecentlin commented 7 years ago

@minthemiddle Thanks for your feedback. That's right, and I'll add it.