app/Http/Controllers/ParroquiaController.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([
         'municipio_id' => 'required',
         'parroquia' => 'required',
     ]);
     Parroquia::create($request->all());
     return Redirect::to('parroquia')
    ->with('mensaje','Parroquia creada satisfactoriamente.');
    }
public function store ( Request $ request ) { $ request -> validate ( [ 'municipio_id' => 'required' , 'parroquia' => 'required' , ] ) ; Parroquia :: create ( $ request -> all ( ) ) ; return Redirect :: to ( 'parroquia' ) -> with ( 'mensaje' , 'Parroquia creada satisfactoriamente.' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .