src/Policies/EventPolicy.php
public function view($user, Event $event)
    {
        if ($event->creator->id == $user->id) {
            return true;
        }

        return User::findOrFail($user->id)->hasPermission('laralum::events.view');
    }
public function view($user, Event $event)
    {
        if ($event->creator->id == $user->id) {
            return true;
        }

        return User::findOrFail($user->id)->hasPermission('laralum::events.view');
    }
public function view ( $ user , Event $ event ) { if ( $ event -> creator -> id == $ user -> id ) { return true ; } return User :: findOrFail ( $ user -> id ) -> hasPermission ( 'laralum::events.view' ) ; }
Determine if the current user can view events.

@param mixed $user

@return bool
Determine if the current user can view events .