i am an absolute beginner in laravel now i undertsand the concept that laravel creates singular model and plural table name e.g
php artisan make:model Admin -m
php artisan migrate
now this will create a model named Admin and a database named admins now logically i dont have a issue with that but it doesnt look clean if there is only one admin why need to have the table name as admins? shouldn't it be admin? is there any workaround for that ? or i have to just stick with admins
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2hvGUov
via IFTTT
Aucun commentaire:
Enregistrer un commentaire