app/Http/Controllers/CasillaControler.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)
    {
        $this->validateData($request);
        $data['ubicacion']=$request->ubicacion;
        $casilla=Casilla::create($data);
        return redirect('casilla')->with('success',
        $casilla->ubicacion . ' Guardada satisfactoriamente...');
    }
public function store ( Request $ request ) { $ this -> validateData ( $ request ) ; $ data [ 'ubicacion' ] = $ request -> ubicacion ; $ casilla = Casilla :: create ( $ data ) ; return redirect ( 'casilla' ) -> with ( 'success' , $ casilla -> ubicacion . ' Guardada satisfactoriamente...' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .