From 85e0f321ca7a44b8f02b947e30f8c67a996c256c Mon Sep 17 00:00:00 2001 From: alekeyrivas Date: Wed, 12 Jun 2024 13:20:33 -0600 Subject: [PATCH 1/2] Se agrego catalago de cargos funcional --- app/Http/Controllers/CargoController.php | 51 ++++ app/Http/Controllers/cargosController.php | 10 - app/Models/cargos.php | 9 + ..._194301_add_updated_at_to_cargos_table.php | 32 ++ .../09ee47cb6b2ead6fe59c09eda6d900b2.php" | 48 +++ .../13908c918157ccfc7c05c05195757833.php" | 4 + .../32c62aaaf367aebefd821d887e2057aa.php" | 194 +++++++++++++ .../368072756c233ac30f0cf310e266ea82.php" | 12 + .../419551074a50fbe34ef86a0e07ca7190.php" | 164 +++++++++++ .../7e33b743a27113c4160f4c552f8b4db1.php" | 70 +++++ .../8b77322ea40de4645844c2e3622c3810.php" | 59 ++++ .../931737c889bcb943f8fc79654d164835.php" | 7 + .../a120438d505ca9da755be63e962e88d7.php" | 4 + .../a3557068ed5b47425d76d1f6f3777346.php" | 49 ++++ .../a43dffac7f28722de66800e4b9a5f5b9.php" | 185 ++++++++++++ .../a6e017772dac798c684f8ca4ea6a433e.php" | 12 + .../ac95352bcdc7cb6b645348f21d9bb43e.php" | 12 + .../bae129cef9e600352d1c88ca55b5c61c.php" | 110 +++++++ .../f35c1ee9486679cd0ff0ddd907b0d481.php" | 33 +++ .../laravel.log" | 254 ++++++++++++++++ .../views/adminGen/catalagos/cargos.blade.php | 273 ++++++++++++++++++ routes/web.php | 8 + 22 files changed, 1590 insertions(+), 10 deletions(-) create mode 100644 app/Http/Controllers/CargoController.php delete mode 100644 app/Http/Controllers/cargosController.php create mode 100644 database/migrations/2024_06_10_194301_add_updated_at_to_cargos_table.php create mode 100644 "public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/09ee47cb6b2ead6fe59c09eda6d900b2.php" create mode 100644 "public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/13908c918157ccfc7c05c05195757833.php" create mode 100644 "public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/32c62aaaf367aebefd821d887e2057aa.php" create mode 100644 "public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/368072756c233ac30f0cf310e266ea82.php" create mode 100644 "public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/419551074a50fbe34ef86a0e07ca7190.php" create mode 100644 "public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/7e33b743a27113c4160f4c552f8b4db1.php" create mode 100644 "public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/8b77322ea40de4645844c2e3622c3810.php" create mode 100644 "public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/931737c889bcb943f8fc79654d164835.php" create mode 100644 "public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/a120438d505ca9da755be63e962e88d7.php" create mode 100644 "public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/a3557068ed5b47425d76d1f6f3777346.php" create mode 100644 "public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/a43dffac7f28722de66800e4b9a5f5b9.php" create mode 100644 "public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/a6e017772dac798c684f8ca4ea6a433e.php" create mode 100644 "public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/ac95352bcdc7cb6b645348f21d9bb43e.php" create mode 100644 "public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/bae129cef9e600352d1c88ca55b5c61c.php" create mode 100644 "public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/f35c1ee9486679cd0ff0ddd907b0d481.php" create mode 100644 "public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234logs/laravel.log" create mode 100644 resources/views/adminGen/catalagos/cargos.blade.php diff --git a/app/Http/Controllers/CargoController.php b/app/Http/Controllers/CargoController.php new file mode 100644 index 0000000..7ec7b50 --- /dev/null +++ b/app/Http/Controllers/CargoController.php @@ -0,0 +1,51 @@ + $cargos]); + } + + public function store(Request $request) + { + $validated = $request->validate([ + 'nombre' => 'required|max:150', + ]); + + $cargo = new cargos; + $cargo->nombre = $request->nombre; + $cargo->save(); + return redirect()->route('catalogos.cargos.get')->with('success', 'Cargo creado correctamente.'); + } + + public function update(Request $request, cargos $cargo) + { + $validated = $request->validate([ + 'id' => 'required|min:1', + 'nombre' => 'required|max:150', + ]); + $cargo = cargos::find($request->id); + $cargo->nombre = $request->nombre; + $cargo->save(); + return redirect()->route('catalogos.cargos.get')->with('success', 'Cargo actualizado correctamente.'); + } + + public function destroy($id) + { + try { + $cargo = cargos::findOrFail($id); + $cargo->delete(); + return redirect()->route('catalogos.cargos.get')->with('success', 'Cargo eliminado correctamente.'); + } catch (\Exception $e) { + return redirect()->route('catalogos.cargos.get')->withErrors('Error al eliminar el cargo:' . $e->getMessage()); + } + } +} diff --git a/app/Http/Controllers/cargosController.php b/app/Http/Controllers/cargosController.php deleted file mode 100644 index 579af32..0000000 --- a/app/Http/Controllers/cargosController.php +++ /dev/null @@ -1,10 +0,0 @@ -hasMany(User::class); + } } diff --git a/database/migrations/2024_06_10_194301_add_updated_at_to_cargos_table.php b/database/migrations/2024_06_10_194301_add_updated_at_to_cargos_table.php new file mode 100644 index 0000000..568bc06 --- /dev/null +++ b/database/migrations/2024_06_10_194301_add_updated_at_to_cargos_table.php @@ -0,0 +1,32 @@ +timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('cargos', function (Blueprint $table) { + $table->dropTimestamps(); + }); + } +} diff --git "a/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/09ee47cb6b2ead6fe59c09eda6d900b2.php" "b/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/09ee47cb6b2ead6fe59c09eda6d900b2.php" new file mode 100644 index 0000000..6b9ede4 --- /dev/null +++ "b/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/09ee47cb6b2ead6fe59c09eda6d900b2.php" @@ -0,0 +1,48 @@ + + + 'laravel-exceptions-renderer::components.card','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> +withName('laravel-exceptions-renderer::card'); ?> +shouldRender()): ?> +startComponent($component->resolveView(), $component->data()); ?> + +except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> + +withAttributes([]); ?> +
+
+
+ + + class()), -1))); ?> + + +
+
message()); ?>
+
+ + +
+ renderComponent(); ?> + + + + + + + + + + \ No newline at end of file diff --git "a/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/13908c918157ccfc7c05c05195757833.php" "b/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/13908c918157ccfc7c05c05195757833.php" new file mode 100644 index 0000000..7343cbd --- /dev/null +++ "b/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/13908c918157ccfc7c05c05195757833.php" @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git "a/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/32c62aaaf367aebefd821d887e2057aa.php" "b/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/32c62aaaf367aebefd821d887e2057aa.php" new file mode 100644 index 0000000..58cb6f3 --- /dev/null +++ "b/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/32c62aaaf367aebefd821d887e2057aa.php" @@ -0,0 +1,194 @@ + + +
+ + + +
+ \ No newline at end of file diff --git "a/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/368072756c233ac30f0cf310e266ea82.php" "b/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/368072756c233ac30f0cf310e266ea82.php" new file mode 100644 index 0000000..9e5a006 --- /dev/null +++ "b/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/368072756c233ac30f0cf310e266ea82.php" @@ -0,0 +1,12 @@ + + +> + + + \ No newline at end of file diff --git "a/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/419551074a50fbe34ef86a0e07ca7190.php" "b/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/419551074a50fbe34ef86a0e07ca7190.php" new file mode 100644 index 0000000..fd0ce20 --- /dev/null +++ "b/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/419551074a50fbe34ef86a0e07ca7190.php" @@ -0,0 +1,164 @@ + + \ No newline at end of file diff --git "a/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/7e33b743a27113c4160f4c552f8b4db1.php" "b/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/7e33b743a27113c4160f4c552f8b4db1.php" new file mode 100644 index 0000000..5d03c77 --- /dev/null +++ "b/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/7e33b743a27113c4160f4c552f8b4db1.php" @@ -0,0 +1,70 @@ + + + 'laravel-exceptions-renderer::components.card','data' => ['class' => 'mt-6 overflow-x-auto']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> +withName('laravel-exceptions-renderer::card'); ?> +shouldRender()): ?> +startComponent($component->resolveView(), $component->data()); ?> + +except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> + +withAttributes(['class' => 'mt-6 overflow-x-auto']); ?> +
+
+ + + 'laravel-exceptions-renderer::components.trace','data' => ['exception' => $exception]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> +withName('laravel-exceptions-renderer::trace'); ?> +shouldRender()): ?> +startComponent($component->resolveView(), $component->data()); ?> + +except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> + +withAttributes(['exception' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($exception)]); ?> +renderComponent(); ?> + + + + + + + + + + + + 'laravel-exceptions-renderer::components.editor','data' => ['exception' => $exception]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> +withName('laravel-exceptions-renderer::editor'); ?> +shouldRender()): ?> +startComponent($component->resolveView(), $component->data()); ?> + +except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> + +withAttributes(['exception' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($exception)]); ?> +renderComponent(); ?> + + + + + + + + + +
+
+ renderComponent(); ?> + + + + + + + + + + \ No newline at end of file diff --git "a/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/8b77322ea40de4645844c2e3622c3810.php" "b/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/8b77322ea40de4645844c2e3622c3810.php" new file mode 100644 index 0000000..9bf5356 --- /dev/null +++ "b/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/8b77322ea40de4645844c2e3622c3810.php" @@ -0,0 +1,59 @@ + + + + + + + <?php echo e(config('app.name', 'Laravel')); ?> + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git "a/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/931737c889bcb943f8fc79654d164835.php" "b/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/931737c889bcb943f8fc79654d164835.php" new file mode 100644 index 0000000..837c380 --- /dev/null +++ "b/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/931737c889bcb943f8fc79654d164835.php" @@ -0,0 +1,7 @@ +
merge(['class' => "@container flex flex-col p-6 sm:p-12 bg-white dark:bg-gray-900/80 text-gray-900 dark:text-gray-100 rounded-lg default:col-span-full default:lg:col-span-6 default:row-span-1 dark:ring-1 dark:ring-gray-800 shadow-xl"])); ?>" +> + + +
+ \ No newline at end of file diff --git "a/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/a120438d505ca9da755be63e962e88d7.php" "b/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/a120438d505ca9da755be63e962e88d7.php" new file mode 100644 index 0000000..15882ba --- /dev/null +++ "b/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/a120438d505ca9da755be63e962e88d7.php" @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git "a/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/a3557068ed5b47425d76d1f6f3777346.php" "b/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/a3557068ed5b47425d76d1f6f3777346.php" new file mode 100644 index 0000000..3d6c900 --- /dev/null +++ "b/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/a3557068ed5b47425d76d1f6f3777346.php" @@ -0,0 +1,49 @@ +
+
+
+
+
+ + + +
+ + + title()); ?> + + +
+ +
+ + + 'laravel-exceptions-renderer::components.theme-swicher','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> +withName('laravel-exceptions-renderer::theme-swicher'); ?> +shouldRender()): ?> +startComponent($component->resolveView(), $component->data()); ?> + +except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> + +withAttributes([]); ?> +renderComponent(); ?> + + + + + + + + + +
+
+
+
+ \ No newline at end of file diff --git "a/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/a43dffac7f28722de66800e4b9a5f5b9.php" "b/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/a43dffac7f28722de66800e4b9a5f5b9.php" new file mode 100644 index 0000000..1e6b174 --- /dev/null +++ "b/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/a43dffac7f28722de66800e4b9a5f5b9.php" @@ -0,0 +1,185 @@ + + + 'laravel-exceptions-renderer::components.card','data' => ['class' => 'mt-6 overflow-x-auto']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> +withName('laravel-exceptions-renderer::card'); ?> +shouldRender()): ?> +startComponent($component->resolveView(), $component->data()); ?> + +except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> + +withAttributes(['class' => 'mt-6 overflow-x-auto']); ?> +
+ Request +
+ +
+ request()->method()); ?> + request()->httpHost()); ?> +
+ +
+ Headers +
+ +
+ requestHeaders(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> +
+ + + + + +
+
+
+ popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> + +
No headers data
+
+ +
+ +
+ Body +
+ +
+
+ +
requestBody() ?: 'No body data'; ?>
+
+
+
+ + renderComponent(); ?> + + + + + + + + + + + + + 'laravel-exceptions-renderer::components.card','data' => ['class' => 'mt-6 overflow-x-auto']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> +withName('laravel-exceptions-renderer::card'); ?> +shouldRender()): ?> +startComponent($component->resolveView(), $component->data()); ?> + +except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> + +withAttributes(['class' => 'mt-6 overflow-x-auto']); ?> +
+ Application +
+ +
+ Routing +
+ +
+ applicationRouteContext(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $name => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> +
+ + +
+
+
+ popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> + +
No routing data
+
+ +
+ + applicationRouteParametersContext()): ?> +
+ Routing Parameters +
+ +
+
+ +
+
+
+
+ + +
+ Database Queries + + applicationQueries()) === 100): ?> + only the first 100 queries are displayed + + +
+ +
+ applicationQueries(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as ['connectionName' => $connectionName, 'sql' => $sql, 'time' => $time]): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> +
+
+ + +
+ +
+
+
+ popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> + +
No query data
+
+ +
+ renderComponent(); ?> + + + + + + + + + + \ No newline at end of file diff --git "a/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/a6e017772dac798c684f8ca4ea6a433e.php" "b/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/a6e017772dac798c684f8ca4ea6a433e.php" new file mode 100644 index 0000000..c8eaac4 --- /dev/null +++ "b/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/a6e017772dac798c684f8ca4ea6a433e.php" @@ -0,0 +1,12 @@ + + +> + + + \ No newline at end of file diff --git "a/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/ac95352bcdc7cb6b645348f21d9bb43e.php" "b/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/ac95352bcdc7cb6b645348f21d9bb43e.php" new file mode 100644 index 0000000..b040612 --- /dev/null +++ "b/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/ac95352bcdc7cb6b645348f21d9bb43e.php" @@ -0,0 +1,12 @@ + + +> + + + \ No newline at end of file diff --git "a/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/bae129cef9e600352d1c88ca55b5c61c.php" "b/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/bae129cef9e600352d1c88ca55b5c61c.php" new file mode 100644 index 0000000..82cb097 --- /dev/null +++ "b/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/bae129cef9e600352d1c88ca55b5c61c.php" @@ -0,0 +1,110 @@ + + + 'laravel-exceptions-renderer::components.layout','data' => ['exception' => $exception]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> +withName('laravel-exceptions-renderer::layout'); ?> +shouldRender()): ?> +startComponent($component->resolveView(), $component->data()); ?> + +except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> + +withAttributes(['exception' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($exception)]); ?> +
+ + + 'laravel-exceptions-renderer::components.navigation','data' => ['exception' => $exception]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> +withName('laravel-exceptions-renderer::navigation'); ?> +shouldRender()): ?> +startComponent($component->resolveView(), $component->data()); ?> + +except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> + +withAttributes(['exception' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($exception)]); ?> +renderComponent(); ?> + + + + + + + + + + +
+
+ + + 'laravel-exceptions-renderer::components.header','data' => ['exception' => $exception]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> +withName('laravel-exceptions-renderer::header'); ?> +shouldRender()): ?> +startComponent($component->resolveView(), $component->data()); ?> + +except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> + +withAttributes(['exception' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($exception)]); ?> +renderComponent(); ?> + + + + + + + + + + + + + 'laravel-exceptions-renderer::components.trace-and-editor','data' => ['exception' => $exception]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> +withName('laravel-exceptions-renderer::trace-and-editor'); ?> +shouldRender()): ?> +startComponent($component->resolveView(), $component->data()); ?> + +except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> + +withAttributes(['exception' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($exception)]); ?> +renderComponent(); ?> + + + + + + + + + + + + + 'laravel-exceptions-renderer::components.context','data' => ['exception' => $exception]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> +withName('laravel-exceptions-renderer::context'); ?> +shouldRender()): ?> +startComponent($component->resolveView(), $component->data()); ?> + +except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> + +withAttributes(['exception' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($exception)]); ?> +renderComponent(); ?> + + + + + + + + + +
+
+
+ renderComponent(); ?> + + + + + + + + + + \ No newline at end of file diff --git "a/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/f35c1ee9486679cd0ff0ddd907b0d481.php" "b/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/f35c1ee9486679cd0ff0ddd907b0d481.php" new file mode 100644 index 0000000..146d3a8 --- /dev/null +++ "b/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234framework\357\201\234views/f35c1ee9486679cd0ff0ddd907b0d481.php" @@ -0,0 +1,33 @@ +frames(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $frame): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> +
+
+
+
+ + + + file()); ?> + + + file()); ?> + + + :line()); ?> +
+
+
+
+
+
+
+popLoop(); $loop = $__env->getLastLoop(); ?> + \ No newline at end of file diff --git "a/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234logs/laravel.log" "b/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234logs/laravel.log" new file mode 100644 index 0000000..6f5d3eb --- /dev/null +++ "b/public/C\357\200\272\357\201\234Users\357\201\234aleke\357\201\234agendagobernador\357\201\234storage\357\201\234logs/laravel.log" @@ -0,0 +1,254 @@ +[2024-06-11 15:31:59] local.ERROR: SQLSTATE[HY000] [2002] No such file or directory (Connection: mysql, SQL: select * from `sessions` where `id` = 0yLFRABNl0hxAriHZMUEuCl1V0pVTJdDJd3WzOKt limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No such file or directory (Connection: mysql, SQL: select * from `sessions` where `id` = 0yLFRABNl0hxAriHZMUEuCl1V0pVTJdDJd3WzOKt limit 1) at /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:813) +[stacktrace] +#0 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(967): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure)) +#1 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(946): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure)) +#2 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(769): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure)) +#3 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(398): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure)) +#4 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2993): Illuminate\\Database\\Connection->select('select * from `...', Array, true) +#5 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2978): Illuminate\\Database\\Query\\Builder->runSelect() +#6 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3566): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}() +#7 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2977): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure)) +#8 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(335): Illuminate\\Database\\Query\\Builder->get(Array) +#9 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2900): Illuminate\\Database\\Query\\Builder->first(Array) +#10 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/DatabaseSessionHandler.php(97): Illuminate\\Database\\Query\\Builder->find('0yLFRABNl0hxAri...') +#11 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Store.php(113): Illuminate\\Session\\DatabaseSessionHandler->read('0yLFRABNl0hxAri...') +#12 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Store.php(101): Illuminate\\Session\\Store->readFromHandler() +#13 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Store.php(85): Illuminate\\Session\\Store->loadSession() +#14 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(147): Illuminate\\Session\\Store->start() +#15 /var/www/html/vendor/laravel/framework/src/Illuminate/Support/helpers.php(363): Illuminate\\Session\\Middleware\\StartSession->Illuminate\\Session\\Middleware\\{closure}(Object(Illuminate\\Session\\Store)) +#16 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(144): tap(Object(Illuminate\\Session\\Store), Object(Closure)) +#17 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(116): Illuminate\\Session\\Middleware\\StartSession->startSession(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store)) +#18 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure)) +#19 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#20 /var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#21 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#22 /var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(75): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#23 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#24 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#25 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure)) +#26 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request)) +#27 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route)) +#28 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request)) +#29 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request)) +#30 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request)) +#31 /var/www/html/vendor/livewire/livewire/src/Features/SupportDisablingBackButtonCache/DisableBackButtonCacheMiddleware.php(19): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#32 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Livewire\\Features\\SupportDisablingBackButtonCache\\DisableBackButtonCacheMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#33 /var/www/html/app/Http/Middleware/CheckBanned.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#34 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\CheckBanned->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#35 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#36 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#37 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#38 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#39 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(51): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#40 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#41 /var/www/html/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#42 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#43 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(110): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#44 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#45 /var/www/html/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#46 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#47 /var/www/html/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#48 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#49 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#50 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure)) +#51 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request)) +#52 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1176): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request)) +#53 /var/www/html/public/index.php(17): Illuminate\\Foundation\\Application->handleRequest(Object(Illuminate\\Http\\Request)) +#54 {main} + +[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No such file or directory at /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65) +[stacktrace] +#0 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=loca...', 'agenda_user', Object(SensitiveParameterValue), Array) +#1 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=loca...', 'agenda_user', 'password_agenda...', Array) +#2 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=loca...', 'agenda_user', 'password_agenda...', Array) +#3 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=loca...', Array, Array) +#4 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(185): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array) +#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}() +#6 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1219): call_user_func(Object(Closure)) +#7 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1255): Illuminate\\Database\\Connection->getPdo() +#8 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(512): Illuminate\\Database\\Connection->getReadPdo() +#9 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(407): Illuminate\\Database\\Connection->getPdoForSelect(true) +#10 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(800): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array) +#11 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(967): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure)) +#12 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(946): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure)) +#13 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(769): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure)) +#14 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(398): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure)) +#15 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2993): Illuminate\\Database\\Connection->select('select * from `...', Array, true) +#16 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2978): Illuminate\\Database\\Query\\Builder->runSelect() +#17 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3566): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}() +#18 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2977): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure)) +#19 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(335): Illuminate\\Database\\Query\\Builder->get(Array) +#20 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2900): Illuminate\\Database\\Query\\Builder->first(Array) +#21 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/DatabaseSessionHandler.php(97): Illuminate\\Database\\Query\\Builder->find('0yLFRABNl0hxAri...') +#22 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Store.php(113): Illuminate\\Session\\DatabaseSessionHandler->read('0yLFRABNl0hxAri...') +#23 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Store.php(101): Illuminate\\Session\\Store->readFromHandler() +#24 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Store.php(85): Illuminate\\Session\\Store->loadSession() +#25 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(147): Illuminate\\Session\\Store->start() +#26 /var/www/html/vendor/laravel/framework/src/Illuminate/Support/helpers.php(363): Illuminate\\Session\\Middleware\\StartSession->Illuminate\\Session\\Middleware\\{closure}(Object(Illuminate\\Session\\Store)) +#27 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(144): tap(Object(Illuminate\\Session\\Store), Object(Closure)) +#28 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(116): Illuminate\\Session\\Middleware\\StartSession->startSession(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store)) +#29 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure)) +#30 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#31 /var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#32 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#33 /var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(75): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#34 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#35 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#36 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure)) +#37 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request)) +#38 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route)) +#39 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request)) +#40 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request)) +#41 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request)) +#42 /var/www/html/vendor/livewire/livewire/src/Features/SupportDisablingBackButtonCache/DisableBackButtonCacheMiddleware.php(19): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#43 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Livewire\\Features\\SupportDisablingBackButtonCache\\DisableBackButtonCacheMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#44 /var/www/html/app/Http/Middleware/CheckBanned.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#45 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\CheckBanned->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#46 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#47 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#48 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#49 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#50 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(51): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#51 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#52 /var/www/html/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#53 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#54 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(110): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#55 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#56 /var/www/html/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#57 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#58 /var/www/html/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#59 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#60 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#61 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure)) +#62 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request)) +#63 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1176): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request)) +#64 /var/www/html/public/index.php(17): Illuminate\\Foundation\\Application->handleRequest(Object(Illuminate\\Http\\Request)) +#65 {main} +"} +[2024-06-11 15:32:49] local.ERROR: SQLSTATE[HY000] [2002] No such file or directory (Connection: mysql, SQL: select * from `sessions` where `id` = BCqrcNTSmm8RBi9P6dPtJjINKac94wpkcPZbnV9R limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No such file or directory (Connection: mysql, SQL: select * from `sessions` where `id` = BCqrcNTSmm8RBi9P6dPtJjINKac94wpkcPZbnV9R limit 1) at /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:813) +[stacktrace] +#0 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(967): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure)) +#1 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(946): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure)) +#2 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(769): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure)) +#3 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(398): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure)) +#4 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2993): Illuminate\\Database\\Connection->select('select * from `...', Array, true) +#5 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2978): Illuminate\\Database\\Query\\Builder->runSelect() +#6 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3566): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}() +#7 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2977): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure)) +#8 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(335): Illuminate\\Database\\Query\\Builder->get(Array) +#9 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2900): Illuminate\\Database\\Query\\Builder->first(Array) +#10 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/DatabaseSessionHandler.php(97): Illuminate\\Database\\Query\\Builder->find('BCqrcNTSmm8RBi9...') +#11 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Store.php(113): Illuminate\\Session\\DatabaseSessionHandler->read('BCqrcNTSmm8RBi9...') +#12 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Store.php(101): Illuminate\\Session\\Store->readFromHandler() +#13 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Store.php(85): Illuminate\\Session\\Store->loadSession() +#14 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(147): Illuminate\\Session\\Store->start() +#15 /var/www/html/vendor/laravel/framework/src/Illuminate/Support/helpers.php(363): Illuminate\\Session\\Middleware\\StartSession->Illuminate\\Session\\Middleware\\{closure}(Object(Illuminate\\Session\\Store)) +#16 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(144): tap(Object(Illuminate\\Session\\Store), Object(Closure)) +#17 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(116): Illuminate\\Session\\Middleware\\StartSession->startSession(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store)) +#18 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure)) +#19 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#20 /var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#21 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#22 /var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(75): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#23 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#24 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#25 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure)) +#26 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request)) +#27 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route)) +#28 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request)) +#29 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request)) +#30 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request)) +#31 /var/www/html/vendor/livewire/livewire/src/Features/SupportDisablingBackButtonCache/DisableBackButtonCacheMiddleware.php(19): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#32 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Livewire\\Features\\SupportDisablingBackButtonCache\\DisableBackButtonCacheMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#33 /var/www/html/app/Http/Middleware/CheckBanned.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#34 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\CheckBanned->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#35 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#36 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#37 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#38 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#39 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(51): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#40 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#41 /var/www/html/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#42 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#43 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(110): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#44 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#45 /var/www/html/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#46 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#47 /var/www/html/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#48 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#49 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#50 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure)) +#51 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request)) +#52 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1176): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request)) +#53 /var/www/html/public/index.php(17): Illuminate\\Foundation\\Application->handleRequest(Object(Illuminate\\Http\\Request)) +#54 {main} + +[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No such file or directory at /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65) +[stacktrace] +#0 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=loca...', 'agenda_user', Object(SensitiveParameterValue), Array) +#1 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=loca...', 'agenda_user', 'password_agenda...', Array) +#2 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=loca...', 'agenda_user', 'password_agenda...', Array) +#3 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=loca...', Array, Array) +#4 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(185): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array) +#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}() +#6 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1219): call_user_func(Object(Closure)) +#7 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1255): Illuminate\\Database\\Connection->getPdo() +#8 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(512): Illuminate\\Database\\Connection->getReadPdo() +#9 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(407): Illuminate\\Database\\Connection->getPdoForSelect(true) +#10 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(800): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array) +#11 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(967): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure)) +#12 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(946): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure)) +#13 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(769): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure)) +#14 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(398): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure)) +#15 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2993): Illuminate\\Database\\Connection->select('select * from `...', Array, true) +#16 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2978): Illuminate\\Database\\Query\\Builder->runSelect() +#17 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3566): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}() +#18 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2977): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure)) +#19 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(335): Illuminate\\Database\\Query\\Builder->get(Array) +#20 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2900): Illuminate\\Database\\Query\\Builder->first(Array) +#21 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/DatabaseSessionHandler.php(97): Illuminate\\Database\\Query\\Builder->find('BCqrcNTSmm8RBi9...') +#22 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Store.php(113): Illuminate\\Session\\DatabaseSessionHandler->read('BCqrcNTSmm8RBi9...') +#23 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Store.php(101): Illuminate\\Session\\Store->readFromHandler() +#24 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Store.php(85): Illuminate\\Session\\Store->loadSession() +#25 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(147): Illuminate\\Session\\Store->start() +#26 /var/www/html/vendor/laravel/framework/src/Illuminate/Support/helpers.php(363): Illuminate\\Session\\Middleware\\StartSession->Illuminate\\Session\\Middleware\\{closure}(Object(Illuminate\\Session\\Store)) +#27 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(144): tap(Object(Illuminate\\Session\\Store), Object(Closure)) +#28 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(116): Illuminate\\Session\\Middleware\\StartSession->startSession(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store)) +#29 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure)) +#30 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#31 /var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#32 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#33 /var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(75): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#34 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#35 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#36 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure)) +#37 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request)) +#38 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route)) +#39 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request)) +#40 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request)) +#41 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request)) +#42 /var/www/html/vendor/livewire/livewire/src/Features/SupportDisablingBackButtonCache/DisableBackButtonCacheMiddleware.php(19): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#43 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Livewire\\Features\\SupportDisablingBackButtonCache\\DisableBackButtonCacheMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#44 /var/www/html/app/Http/Middleware/CheckBanned.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#45 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\CheckBanned->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#46 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#47 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#48 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#49 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#50 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(51): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#51 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#52 /var/www/html/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#53 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#54 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(110): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#55 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#56 /var/www/html/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#57 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#58 /var/www/html/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#59 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure)) +#60 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) +#61 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure)) +#62 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request)) +#63 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1176): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request)) +#64 /var/www/html/public/index.php(17): Illuminate\\Foundation\\Application->handleRequest(Object(Illuminate\\Http\\Request)) +#65 {main} +"} diff --git a/resources/views/adminGen/catalagos/cargos.blade.php b/resources/views/adminGen/catalagos/cargos.blade.php new file mode 100644 index 0000000..ed4ad79 --- /dev/null +++ b/resources/views/adminGen/catalagos/cargos.blade.php @@ -0,0 +1,273 @@ + + + + + +
+
    +
  • + Dashboard +
  • +
  • + Catálogos +
  • +
  • + Cargos +
  • +
+
+ +
+
+
+ + + +
+
+
+ + + + + + + + + +
IdNombreAcciones
+ +
+
+ + + + + +
\ No newline at end of file diff --git a/routes/web.php b/routes/web.php index ad319f1..4988754 100644 --- a/routes/web.php +++ b/routes/web.php @@ -2,6 +2,7 @@ use Illuminate\Support\Facades\Route; use App\Http\Middleware\CheckBanned; +use App\Http\Controllers\CargoController; Route::get('/', function () { return view('welcome'); @@ -17,3 +18,10 @@ return view('dashboard'); })->name('dashboard'); }); + +Route::name('catalogos.')->group(function () { + Route::get('/catalogos/cargos', [CargoController::class, 'index'])->name('cargos.get'); + Route::post('/catalogos/cargos', [CargoController::class, 'store'])->name('cargos.store'); + Route::put('/catalogos/cargos', [CargoController::class, 'update'])->name('cargos.update'); + Route::delete('/catalogos/cargos/{id}', [CargoController::class, 'destroy'])->name('cargos.destroy'); +}); -- GitLab From 1da40e4b29358e0ae52b356cc827c98404dc438b Mon Sep 17 00:00:00 2001 From: alekeyrivas Date: Wed, 12 Jun 2024 14:45:50 -0600 Subject: [PATCH 2/2] Listo catalago de caracteristicas funcional --- .../Controllers/caracteristicasController.php | 47 ++- app/Models/caracteristicas.php | 14 +- ...dd_timestamps_to_caracteristicas_table.php | 23 ++ .../catalagos/caracteristicas.blade.php | 272 ++++++++++++++++++ routes/web.php | 16 +- 5 files changed, 364 insertions(+), 8 deletions(-) create mode 100644 database/migrations/2024_06_12_202929_add_timestamps_to_caracteristicas_table.php create mode 100644 resources/views/adminGen/catalagos/caracteristicas.blade.php diff --git a/app/Http/Controllers/caracteristicasController.php b/app/Http/Controllers/caracteristicasController.php index fa10e14..0236a77 100644 --- a/app/Http/Controllers/caracteristicasController.php +++ b/app/Http/Controllers/caracteristicasController.php @@ -2,9 +2,52 @@ namespace App\Http\Controllers; +use App\Models\Caracteristicas; use Illuminate\Http\Request; +use Carbon\Carbon; -class caracteristicasController extends Controller +class CaracteristicasController extends Controller { - // + public function index() + { + $caracteristicas = Caracteristicas::get(['id', 'nombre']); + return view('adminGen.catalagos.caracteristicas', ['caracteristicas' => $caracteristicas]); + } + + public function store(Request $request) + { + $validated = $request->validate([ + 'nombre' => 'required|max:150', + ]); + + $caracteristicas = new Caracteristicas(); + $caracteristicas->nombre = $request->nombre; + $caracteristicas->created_at = Carbon::now(); + $caracteristicas->updated_at = Carbon::now(); + $caracteristicas->save(); + + return redirect()->route('catalogos.caracteristicas.get')->with('success', 'Caracteristica creada correctamente.'); + } + + public function update(Request $request, Caracteristicas $caracteristicas) + { + $validated = $request->validate([ + 'id' => 'required|min:1', + 'nombre' => 'required|max:150', + ]); + + $caracteristicas = Caracteristicas::find($request->id); + $caracteristicas->nombre = $request->nombre; + $caracteristicas->save(); + + return redirect()->route('catalogos.caracteristicas.get')->with('success', 'Caracteristica actualizada correctamente.'); + } + + public function destroy($id) + { + $caracteristica = Caracteristicas::findOrFail($id); + $caracteristica->delete(); + + return redirect()->route('catalogos.caracteristicas.get')->with('success', 'Característica eliminada correctamente.'); + } } diff --git a/app/Models/caracteristicas.php b/app/Models/caracteristicas.php index 4d5b950..299d53b 100644 --- a/app/Models/caracteristicas.php +++ b/app/Models/caracteristicas.php @@ -5,7 +5,19 @@ use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; -class caracteristicas extends Model +class Caracteristicas extends Model { use HasFactory; + + protected $primaryKey = 'id'; + + protected $fillable = [ + 'nombre', + ]; + + public function users() { + return $this->hasMany(User::class); + } + + public $timestamps = false; } diff --git a/database/migrations/2024_06_12_202929_add_timestamps_to_caracteristicas_table.php b/database/migrations/2024_06_12_202929_add_timestamps_to_caracteristicas_table.php new file mode 100644 index 0000000..bdeb1b3 --- /dev/null +++ b/database/migrations/2024_06_12_202929_add_timestamps_to_caracteristicas_table.php @@ -0,0 +1,23 @@ +timestamps(); + }); + } + + public function down() + { + Schema::table('caracteristicas', function (Blueprint $table) { + $table->dropTimestamps(); + }); + } +} + diff --git a/resources/views/adminGen/catalagos/caracteristicas.blade.php b/resources/views/adminGen/catalagos/caracteristicas.blade.php new file mode 100644 index 0000000..aea6bec --- /dev/null +++ b/resources/views/adminGen/catalagos/caracteristicas.blade.php @@ -0,0 +1,272 @@ + + + + + +
+
    +
  • + Dashboard +
  • +
  • + Catálogos +
  • +
  • + Caracteristicas +
  • +
+
+ +
+
+
+ + + +
+
+
+ + + + + + + + + +
IdNombreAcciones
+ +
+
+ + + + + +
\ No newline at end of file diff --git a/routes/web.php b/routes/web.php index 4988754..a272fe0 100644 --- a/routes/web.php +++ b/routes/web.php @@ -3,6 +3,7 @@ use Illuminate\Support\Facades\Route; use App\Http\Middleware\CheckBanned; use App\Http\Controllers\CargoController; +use App\Http\Controllers\CaracteristicasController; Route::get('/', function () { return view('welcome'); @@ -19,9 +20,14 @@ })->name('dashboard'); }); -Route::name('catalogos.')->group(function () { - Route::get('/catalogos/cargos', [CargoController::class, 'index'])->name('cargos.get'); - Route::post('/catalogos/cargos', [CargoController::class, 'store'])->name('cargos.store'); - Route::put('/catalogos/cargos', [CargoController::class, 'update'])->name('cargos.update'); - Route::delete('/catalogos/cargos/{id}', [CargoController::class, 'destroy'])->name('cargos.destroy'); +Route::prefix('catalogos')->name('catalogos.')->group(function () { + Route::get('/cargos', [CargoController::class, 'index'])->name('cargos.get'); + Route::post('/cargos', [CargoController::class, 'store'])->name('cargos.store'); + Route::put('/cargos', [CargoController::class, 'update'])->name('cargos.update'); + Route::delete('/cargos/{id}', [CargoController::class, 'destroy'])->name('cargos.destroy'); + + Route::get('/caracteristicas', [CaracteristicasController::class, 'index'])->name('caracteristicas.get'); + Route::post('/caracteristicas', [CaracteristicasController::class, 'store'])->name('caracteristicas.store'); + Route::put('/caracteristicas', [CaracteristicasController::class, 'update'])->name('caracteristicas.update'); + Route::delete('/caracteristicas/{id}', [CaracteristicasController::class, 'destroy'])->name('caracteristicas.destroy'); }); -- GitLab