diff --git a/BD/modelo.mwb b/BD/modelo.mwb new file mode 100644 index 0000000..860f16a Binary files /dev/null and b/BD/modelo.mwb differ diff --git a/app/Http/Controllers/CategoriasController.php b/app/Http/Controllers/CategoriasController.php index 4d83c7e..e132a98 100644 --- a/app/Http/Controllers/CategoriasController.php +++ b/app/Http/Controllers/CategoriasController.php @@ -29,6 +29,7 @@ class CategoriasController extends Controller } public function show($id){ $categoria = Categorias::findOrfail($id); + $categoria->formatear_texto(); return view('categorias.show', ["cat"=>$categoria]); } diff --git a/app/Http/Controllers/ProductoController.php b/app/Http/Controllers/ProductoController.php new file mode 100644 index 0000000..39a1900 --- /dev/null +++ b/app/Http/Controllers/ProductoController.php @@ -0,0 +1,10 @@ +nombre = ucwords(strtolower($this->nombre)); + $this->update(); + } + +} + diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php index 3353350..a09134f 100644 --- a/resources/views/welcome.blade.php +++ b/resources/views/welcome.blade.php @@ -7,127 +7,43 @@ Laravel - - - - - + + + - -
- @if (Route::has('login')) -
- @auth - Home - @else - Log in + +
+

Bienvenidos al sistema

+
- @if (Route::has('register')) - Register - @endif - @endauth -

- @endif + @auth + + + + Ir a Categorias + + @endauth + + @guest +
+

Usuario no autenticado

+

Debe Iniciar Sesion

+ +

+ + Iniciar sesion + + + @endguest +
diff --git a/routes/web.php b/routes/web.php index e0b90e8..b47bb4a 100644 --- a/routes/web.php +++ b/routes/web.php @@ -30,5 +30,4 @@ Route::put('categorias/{categoria}', [CategoriasController::class, 'update'])->n Route::resource('categorias', CategoriasController::class)->middleware('auth'); Route::put('categorias/restaurar/{categoria}', [CategoriasController::class, 'restaurar'])->name('categorias.restaurar')->middleware('auth'); Auth::routes(); - Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home');