app/Http/Controllers/VendasController.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)
    {
        $vendas = new Venda();
        $vendas->nome = $request->nome;
        $vendas->id = $request->id;
        $vendas->save();
        return view('vendas.store');
    }
public function store ( Request $ request ) { $ vendas = new Venda ( ) ; $ vendas -> nome = $ request -> nome ; $ vendas -> id = $ request -> id ; $ vendas -> save ( ) ; return view ( 'vendas.store' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .