public function isBanned()
    {
        $throttle = Auth::createThrottleModel()->where('user_id', $this->id)->first();
        return $throttle ? $throttle->is_banned : false;
    }
public function isBanned()
    {
        $throttle = Auth::createThrottleModel()->where('user_id', $this->id)->first();
        return $throttle ? $throttle->is_banned : false;
    }
public function isBanned ( ) { $ throttle = Auth :: createThrottleModel ( ) -> where ( 'user_id' , $ this -> id ) -> first ( ) ; return $ throttle ? $ throttle -> is_banned : false ; }
Check if the user is banned.
@return bool
Check if the user is banned .