app/Http/Controllers/LeaveController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $leaves = Leaves::all();
        $users = Users::all();
        return view('leave.leave_list',['leaves'=>$leaves,'users'=>$users]);
    }
public function index ( ) { $ leaves = Leaves :: all ( ) ; $ users = Users :: all ( ) ; return view ( 'leave.leave_list' , [ 'leaves' => $ leaves , 'users' => $ users ] ) ; }
Display a listing of the resource.
Display a listing of the resource .