app/Http/Controllers/Admin/leavesController.php
/**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
Show the form for creating a new resource.
@return \Illuminate\Http\Response
Show the form for creating a new resource . @return \ Illuminate \ Http \ Response
public function create()
    {
        $leaves = Leaves::all();
        $leavetypes = LeaveTypes::all();
        $date = Carbon::now();
        return view('Admin.Leave Management.Leave.add',compact('leaves','date','leavetypes'));
    }
public function create ( ) { $ leaves = Leaves :: all ( ) ; $ leavetypes = LeaveTypes :: all ( ) ; $ date = Carbon :: now ( ) ; return view ( 'Admin.Leave Management.Leave.add' , compact ( 'leaves' , 'date' , 'leavetypes' ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .