php - Call to undefined method Illuminate\Database\Query\Builder::beforeFilter() -
I am trying to restrict access to my account page in Laravel but continue to receive the above message.
Code: Enlighten \ Auth \ UserTrait; Use Illuminated \ Auth \ UserInterface; Use Illuminated \ Auth \ Reminders \ RemindableTrait; Use Illuminated \ Auth \ Reminders \ RemindableInterface; Class user, apply besassodle, user interface, reminderable interface {public function __ composition () {$ this-> first failer ('at', array ('only' = & gt; array ('view account')); $ This- & gt; BeforeFilter ('csrf', array ('on' = & gt; 'post')); }}
beforeFilter No model
Comments
Post a Comment