app/User.php
/**
     * Check Roles admin here 
     *
     * @var array
     */
Check Roles admin here
@var array
Check Roles admin here @var array
public function isAdmin(){
        $role = Role::join('role_user','roles.id','=','role_user.role_id')
                      ->where('user_id',Auth::user()->id)
                      ->first();
        return $role->name == 'admin' ? true : false;   
    }
public function isAdmin ( ) { $ role = Role :: join ( 'role_user' , 'roles.id' , '=' , 'role_user.role_id' ) -> where ( 'user_id' , Auth :: user ( ) -> id ) -> first ( ) ; return $ role -> name == 'admin' ? true : false ; }
Check Roles admin here
 @var array
Check Roles admin here @var array