app/Http/Controllers/CategoriaController.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)
    {
        $categoria = new Categoria();
        $categoria->nome = mb_strtoupper($request->input('nome'));
        $categoria->save();
        return response(200);
    }
public function store ( Request $ request ) { $ categoria = new Categoria ( ) ; $ categoria -> nome = mb_strtoupper ( $ request -> input ( 'nome' ) ) ; $ categoria -> save ( ) ; return response ( 200 ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .