app/Http/Controllers/LeaveAppController.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();
        return view('leaveApp.leaveApp_list',['leaves'=>$leaves]);
    }
public function index ( ) { $ leaves = Leaves :: all ( ) ; return view ( 'leaveApp.leaveApp_list' , [ 'leaves' => $ leaves ] ) ; }
Display a listing of the resource.
Display a listing of the resource .