app/Http/Controllers/RemateVueController.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)
    {
        if (!$request->ajax()) return redirect('/');
        $remate = new Remate();
        $remate->lugar = $request->lugar;
        $remate->juzgado = $request->juzgado;
        $remate->fecha_subasta = $request->fecha_subasta;
        $remate->hora = $request->hora;
        $remate->descripcion_bien = $request->descripcion_bien;
        $remate->monto = $request->monto;
        $remate->nombre_martillero = $request->nombre_martillero;
        $remate->condicion = '1';
        $remate->save();
    }
public function store ( Request $ request ) { if ( ! $ request -> ajax ( ) ) return redirect ( '/' ) ; $ remate = new Remate ( ) ; $ remate -> lugar = $ request -> lugar ; $ remate -> juzgado = $ request -> juzgado ; $ remate -> fecha_subasta = $ request -> fecha_subasta ; $ remate -> hora = $ request -> hora ; $ remate -> descripcion_bien = $ request -> descripcion_bien ; $ remate -> monto = $ request -> monto ; $ remate -> nombre_martillero = $ request -> nombre_martillero ; $ remate -> condicion = '1' ; $ remate -> save ( ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .