commit 4ac761e1a2c739f838c64056f9d42a894836455b Author: Marcos Elias Rios Nuñez Date: Thu Sep 11 11:36:29 2025 -0300 Commit de la carpeta add diff --git a/app/Http/Controllers/CatalogoController.php b/app/Http/Controllers/CatalogoController.php new file mode 100644 index 0000000..75cf31c --- /dev/null +++ b/app/Http/Controllers/CatalogoController.php @@ -0,0 +1,32 @@ + $productos]); + } + + /** + * Muestra el formulario para crear un nuevo producto. + * @return \Illuminate\View\View + */ + public function crear() + { + // Simplemente retorna la vista del formulario. + return view('catalogo.crear'); + } +} diff --git a/app/Http/Controllers/Controller.php b/app/Http/Controllers/Controller.php new file mode 100644 index 0000000..8677cd5 --- /dev/null +++ b/app/Http/Controllers/Controller.php @@ -0,0 +1,8 @@ + */ + use HasFactory, Notifiable; + + /** + * The attributes that are mass assignable. + * + * @var list + */ + protected $fillable = [ + 'name', + 'email', + 'password', + ]; + + /** + * The attributes that should be hidden for serialization. + * + * @var list + */ + protected $hidden = [ + 'password', + 'remember_token', + ]; + + /** + * Get the attributes that should be cast. + * + * @return array + */ + protected function casts(): array + { + return [ + 'email_verified_at' => 'datetime', + 'password' => 'hashed', + ]; + } +} diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php new file mode 100644 index 0000000..452e6b6 --- /dev/null +++ b/app/Providers/AppServiceProvider.php @@ -0,0 +1,24 @@ +