I just used Artisan CLI to make a migration for a model called story
:
php artisan make:model Story
And it created a migration file that creates a table called stories
and not storys
. Even though it is grammatically correct, it makes me wonder what other non-conventional corrections it can make. In other words, what are rules that CLI follows to create a migration file? Also, do these "correct" names apply to column names or not? Will the migration table for a polymorphic tags
table be taggable_id
or tagable_id
? Bear in mind that Eloquent doesn't expect a taggable_id
by default.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1N3KGga
via IFTTT
Aucun commentaire:
Enregistrer un commentaire