app/Http/Controllers/VentaPlanController.php
/**
     * Store a newly created resource in storage.
     *
     * @return Response
     */
Store a newly created resource in storage.
@return Response
Store a newly created resource in storage . @return Response
public function store(VentaPlanRequest $request)
    {
        $user = new User;
        $user->name();
        $user->save();
        $venta = new VentaPlan;
        $venta->user_id = $user->id;
        $venta->save();
        return redirect('ventas');
    }
public function store ( VentaPlanRequest $ request ) { $ user = new User ; $ user -> name ( ) ; $ user -> save ( ) ; $ venta = new VentaPlan ; $ venta -> user_id = $ user -> id ; $ venta -> save ( ) ; return redirect ( 'ventas' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .