app/Http/Controllers/Database/HolidayController.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)
    {
      $vacaciones = new Holiday;
      $vacaciones->dateStart = "";
      $vacaciones->dateEnd = "";
      $vacaciones->maxDay = "";
      $vacaciones->Enjoyed = "";
      $vacaciones->comment = "";
      return view('holidays.holidays_insert', ['datos'=>$vacaciones]);
    }
public function create ( Request $ request ) { $ vacaciones = new Holiday ; $ vacaciones -> dateStart = " " ; $ vacaciones -> dateEnd = " " ; $ vacaciones -> maxDay = " " ; $ vacaciones -> Enjoyed = " " ; $ vacaciones -> comment = " " ; return view ( 'holidays.holidays_insert' , [ 'datos' => $ vacaciones ] ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .