app/Http/Controllers/LeaveController.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(Request $request)
    {
        $leaveTypes = LeaveTypes::all(); 
        return view('leave.leave_form',[
            'user' => new Leaves(),
            'leaveTypes' => $leaveTypes,
            ]);
    }
public function create ( Request $ request ) { $ leaveTypes = LeaveTypes :: all ( ) ; return view ( 'leave.leave_form' , [ 'user' => new Leaves ( ) , 'leaveTypes' => $ leaveTypes , ] ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .
// \Log::info($request);