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