app/Http/Controllers/Database/GestionFaltaUsuarioController.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()
    {
      $suffer = new Suffer;
      $suffer->dateStart = new Carbon();
      $suffer->dateEnd = new Carbon();
      $suffer->user_id = "";
      $suffer->falta_id = "";
      $users = User::all();
      $faltas = Falta::all();
      return view('suffers.suffers_insert', ['datos'=>$suffer, 'users' =>$users, 'faltas'=>$faltas]);
    }
public function create ( ) { $ suffer = new Suffer ; $ suffer -> dateStart = new Carbon ( ) ; $ suffer -> dateEnd = new Carbon ( ) ; $ suffer -> user_id = " " ; $ suffer -> falta_id = " " ; $ users = User :: all ( ) ; $ faltas = Falta :: all ( ) ; return view ( 'suffers.suffers_insert' , [ 'datos' => $ suffer , 'users' => $ users , 'faltas' => $ faltas ] ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .