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 CategoriaModel;
        $current_timestamp              = date ('Y-m-d H:i:s');
        $categoria->categoria           = $request['categoria'];
        $categoria->save();
        return $categoria;
    }
public function store ( Request $ request ) { $ categoria = new CategoriaModel ; $ current_timestamp = date ( 'Y-m-d H:i:s' ) ; $ categoria -> categoria = $ request [ 'categoria' ] ; $ categoria -> save ( ) ; return $ categoria ; }
Store a newly created resource in storage.
Store a newly created resource in storage .