app/Http/Controllers/Admin/leavesController.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();
        $date = Carbon::today()->toDateString();
        return view('Admin.Leave Management.Leave Control.allLeaves',compact('leaves','date'));
    }
public function index ( ) { $ leaves = Leaves :: all ( ) ; $ date = Carbon :: today ( ) -> toDateString ( ) ; return view ( 'Admin.Leave Management.Leave Control.allLeaves' , compact ( 'leaves' , 'date' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .