I have a table called role with 5 columns (id,name,role,created_At,update_at). I need to create a enum ADMINISTRATOR => 'Adinistrador',EMPLOYEE=>'Colaborador'in the databse. And i need access to verifie if is admin, my though is put the query smeting like this: table->role(ADMINISTRATOR);
Is a beter way to do enums with database?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2bFReXK
via IFTTT
Aucun commentaire:
Enregistrer un commentaire