Ive justed started using laravel and I am curious to know if laravel-4 offers role based mass assignment straight out of the box ?
I wish to allow some users access to those fields(via mass assignment), when editing/updating Information.
I believe Rails Active record has this feature.
class User < ActiveRecord::Base
attr_accessible :first, :last, :email # :default role
attr_accessible :can_fire_missiles, :as => :admin # :admin role
end
Eloquent::unguard()
in order to get around this, which is not a very good solution, especially when multiple permission levels are needed (like for managers instead of admins, for example). Would be nice to get this functionality in natively! – Heartwarming