app/Jobs/Fantasy/TicketsViewJob.php
/**
     * Add Permission base on the user login
     */
Add Permission base on the user login
Add Permission base on the user login
protected function addPermissions()
    {
        if (!$this->user->isAdmin()) {
            $this->tickets = $this->tickets->where('user_id', $this->user->id);
        } else {
            $this->user_list = User::orderBy('name')->get(['name', 'last_name', 'id']);
        }
    }
protected function addPermissions ( ) { if ( ! $ this -> user -> isAdmin ( ) ) { $ this -> tickets = $ this -> tickets -> where ( 'user_id' , $ this -> user -> id ) ; } else { $ this -> user_list = User :: orderBy ( 'name' ) -> get ( [ 'name' , 'last_name' , 'id' ] ) ; } }
Add Permission base on the user login
Add Permission base on the user login