jeudi 10 novembre 2016

Laravel 5.3 Different Fields Per User Role Type how to implement this using polymorphism?

Title says it all

For example

I want the main laravel User Model to have different kinds of roles and every role

has different fields

Example

User has a role of Employee

Where that role will have different fields for the user



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire