I have an app with a Users table with columns: id|name|email|is_admin
. I want admins to be able to set other users as admins.
In models/User.php
I prevent mass-assignment with:
protected $fillable = ['name', 'email'];
Laravel 4 Role Based Mass Assignment concludes that Laravel has no such feature.
My question is, what is a viable work-around? How can I allow only admins to update the column 'is_admin' in my database?