app/Http/Controllers/TipoDiscapacidadController.php
/**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
Store a newly created resource in storage.
Store a newly created resource in storage .
public function store(Request $request)
    {
        $request->validate([
            'tipo_d' => 'required',
        ]);
        tipo_discapacidad::create($request->all());
        return Redirect::to('tipoDiscapacidad')
       ->with('mensaje','Tipo de discapacidad creada satisfactoriamente.');
    }
public function store ( Request $ request ) { $ request -> validate ( [ 'tipo_d' => 'required' , ] ) ; tipo_discapacidad :: create ( $ request -> all ( ) ) ; return Redirect :: to ( 'tipoDiscapacidad' ) -> with ( 'mensaje' , 'Tipo de discapacidad creada satisfactoriamente.' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .