Is it possible to have Eloquent model $fillable attributes conditionally?
For example, you might have a "My Account" section on the frontend for users, and a User Edit section for administrators that use the same model. Those would likely have different fillable values. Any good solutions for that?
Also, in my opinion it would be nice to be able to access the getFillable() method statically, i.e. User::getFillable(), rather than:
$user = new User; $user->getFillable();
Want to reply to this thread?Login with github.