fill($user->toArray()); // User এর ডাটা ফিল্ডগুলোতে অটো বসবে if ($detail = $user->detail) { $this->fill($detail->toArray()); // Detail এর ডাটা ফিল্ডগুলোতে অটো বসবে } } protected function rules() { return [ 'name' => ['required', 'string', 'max:255'], 'email' => ['required', 'email', Rule::unique('users', 'email')->ignore(Auth::id())], 'phone' => ['nullable', 'string', 'max:20', Rule::unique('users', 'phone')->ignore(Auth::id())], 'password' => ['nullable', 'min:8', 'confirmed'], 'whatsapp_number' => ['nullable', 'string', 'max:20'], 'company_name' => ['nullable', 'string', 'max:255'], 'tax_number' => ['nullable', 'string', 'max:100'], 'trade_license_no' => ['nullable', 'string', 'max:100'], 'alternative_phone' => ['nullable', 'string', 'max:20'], 'business_type' => ['required', Rule::in(['wholesaler', 'distributor', 'retailer', 'fabricator'])], 'address_line_1' => ['nullable', 'string'], 'address_line_2' => ['nullable', 'string'], 'city' => ['nullable', 'string', 'max:100'], 'state' => ['nullable', 'string', 'max:100'], 'post_code' => ['nullable', 'string', 'max:20'], 'country' => ['required', 'string', 'max:100'], 'dob' => ['nullable', 'date'], 'gender' => ['nullable', Rule::in(['Male', 'Female', 'Other'])], ]; } public function updateProfileInformation(){ $validated = $this->validate(); $user = Auth::user(); // ১. ইউজার টেবিলের জন্য ডাটা প্রস্তুত করুন $userData = [ 'name' => $validated['name'], 'email' => $validated['email'], 'phone' => $validated['phone'], 'whatsapp_number' => $validated['whatsapp_number'], ]; // যদি পাসওয়ার্ড থাকে তবে সেটি অ্যারেতে যোগ করুন if (!empty($this->password)) { $userData['password'] = Hash::make($this->password); } // ২. একবারেই ইউজার টেবিল আপডেট করুন $user->update($userData); // ৩. ডিটেইলস টেবিল আপডেট (আপনার আগের লজিকটি পারফেক্ট আছে) $details = array_intersect_key($validated, array_flip([ 'company_name', 'tax_number', 'trade_license_no', 'alternative_phone', 'business_type', 'address_line_1', 'address_line_2', 'city', 'state', 'post_code', 'country', 'dob', 'gender' ])); $sanitizedDetails = array_map(fn($v) => ($v === '' || $v === null) ? null : $v, $details); $user->detail()->updateOrCreate(['user_id' => $user->id], $sanitizedDetails); // ৪. সাকসেস মেসেজ ও পাসওয়ার্ড ফিল্ড ক্লিয়ার করা $this->dispatch('notify', message: 'Your corporate profile updated securely!', type: 'success'); // নিরাপত্তার খাতিরে পাসওয়ার্ড ফিল্ডগুলো রিসেট করে দিন $this->reset(['password', 'password_confirmation']); } public function render(){ return view('livewire.user.profile-update'); } } AmyraDesign
Internal Server Error

UnexpectedValueException

vendor/laravel/framework/src/Illuminate/Routing/RouteAction.php:92

Invalid route action: [App\Livewire\User\ProfileUpdate].

LARAVEL 12.53.0
PHP 8.5.4
UNHANDLED
CODE 0
500
GET
https://amyradesign.com/product/easy-chair-singular-pieces-0001

Exception trace

9 vendor frames
Illuminate\Routing\RouteAction::makeInvokable()
vendor/laravel/framework/src/Illuminate/Routing/RouteAction.php:92
Illuminate\Routing\RouteAction::makeInvokable()
vendor/laravel/framework/src/Illuminate/Routing/RouteAction.php:47
Illuminate\Routing\RouteAction::parse()
vendor/laravel/framework/src/Illuminate/Routing/Route.php:197
Illuminate\Routing\Route->parseAction()
vendor/laravel/framework/src/Illuminate/Routing/Route.php:178
Illuminate\Routing\Route->__construct()
vendor/laravel/framework/src/Illuminate/Routing/Router.php:685
Illuminate\Routing\Router->newRoute()
vendor/laravel/framework/src/Illuminate/Routing/Router.php:576
Illuminate\Routing\Router->createRoute()
vendor/laravel/framework/src/Illuminate/Routing/Router.php:556
Illuminate\Routing\Router->addRoute()
vendor/laravel/framework/src/Illuminate/Routing/Router.php:160
Illuminate\Routing\Router->get()
vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:363
Illuminate\Support\Facades\Facade::__callStatic()
routes/web.php:185
180    Route::get('/orders/detail/{uuid}', UserOrderDetail::class)->name('orders.detail');181    Route::get('/orders/create/{productUuid?}', CreateOrder::class)->name('orders.create');182    // Notification: Registering standard stream channel for rendering or printing client invoice sheets183    Route::get('/orders/{uuid}/invoice', [OrderInvoiceController::class, 'print'])->name('orders.invoice');184    // বর্তমান লাইনটি সরিয়ে দিয়ে এটি বসান:185Route::get('/profile', \App\Livewire\User\ProfileUpdate::class)->name('profile');186    187    Route::get('/payment/process/{order}/{gateway}', [PaymentController::class, 'process'])->name('payment.process');188});189190// =========================================================================191// 💳 SECTION 3: SHARED AUTHENTICATED UTILITIES & CORE CALLBACKS192// =========================================================================193Route::middleware(['auth', 'verified'])->group(function () {194    Route::get('/download-file/{uuid}', [ProductDownloadController::class, 'download'])->name('product.download')->middleware(['signed']);195});196197
3 vendor frames
Illuminate\Routing\RouteFileRegistrar->{closure:/home/u267282582/domains/amyradesign.com/public_html/routes/web.php:173}()
vendor/laravel/framework/src/Illuminate/Routing/Router.php:524
Illuminate\Routing\Router->loadRoutes()
vendor/laravel/framework/src/Illuminate/Routing/Router.php:480
Illuminate\Routing\Router->group()
vendor/laravel/framework/src/Illuminate/Routing/RouteRegistrar.php:212
Illuminate\Routing\RouteRegistrar->group()
routes/web.php:173
168169// =========================================================================170// 👤 SECTION 2: SECURE USER PORTAL (Prefix: /user/*)171// =========================================================================172// Notification: Standard customer profile routes mapped under explicit aliases173Route::middleware(['auth', 'verified', 'customer.guard'])->prefix('user')->name('user.')->group(function () {174    175    Route::get('/dashboard', UserDashboard::class)->name('dashboard');176    Route::get('/wishlist', WishlistPage::class)->name('wishlist');177    Route::get('/my-inquiries', MyInquiries::class)->name('my.inquiries');178    Route::get('/compare', ComparePage::class)->name('compare'); // Secured user comparison sheet179    Route::get('/my-orders', CustomerOrderList::class)->name('orders');180    Route::get('/orders/detail/{uuid}', UserOrderDetail::class)->name('orders.detail');181    Route::get('/orders/create/{productUuid?}', CreateOrder::class)->name('orders.create');182    // Notification: Registering standard stream channel for rendering or printing client invoice sheets183    Route::get('/orders/{uuid}/invoice', [OrderInvoiceController::class, 'print'])->name('orders.invoice');184    // বর্তমান লাইনটি সরিয়ে দিয়ে এটি বসান:185
27 vendor frames
require(string)
vendor/laravel/framework/src/Illuminate/Routing/RouteFileRegistrar.php:34
Illuminate\Routing\RouteFileRegistrar->register()
vendor/laravel/framework/src/Illuminate/Routing/Router.php:526
Illuminate\Routing\Router->loadRoutes()
vendor/laravel/framework/src/Illuminate/Routing/Router.php:480
Illuminate\Routing\Router->group()
vendor/laravel/framework/src/Illuminate/Routing/RouteRegistrar.php:212
Illuminate\Routing\RouteRegistrar->group()
vendor/laravel/framework/src/Illuminate/Foundation/Configuration/ApplicationBuilder.php:248
Illuminate\Foundation\Configuration\ApplicationBuilder->{closure:Illuminate\Foundation\Configuration\ApplicationBuilder::buildRoutingCallback():205}()
vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36
Illuminate\Container\BoundMethod::{closure:Illuminate\Container\BoundMethod::call():35}()
vendor/laravel/framework/src/Illuminate/Container/Util.php:43
Illuminate\Container\Util::unwrapIfClosure()
vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:84
Illuminate\Container\BoundMethod::callBoundMethod()
vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:35
Illuminate\Container\BoundMethod::call()
vendor/laravel/framework/src/Illuminate/Container/Container.php:799
Illuminate\Container\Container->call()
vendor/laravel/framework/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php:162
Illuminate\Foundation\Support\Providers\RouteServiceProvider->loadRoutes()
vendor/laravel/framework/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php:59
Illuminate\Foundation\Support\Providers\RouteServiceProvider->{closure:Illuminate\Foundation\Support\Providers\RouteServiceProvider::register():53}()
vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36
Illuminate\Container\BoundMethod::{closure:Illuminate\Container\BoundMethod::call():35}()
vendor/laravel/framework/src/Illuminate/Container/Util.php:43
Illuminate\Container\Util::unwrapIfClosure()
vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:84
Illuminate\Container\BoundMethod::callBoundMethod()
vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:35
Illuminate\Container\BoundMethod::call()
vendor/laravel/framework/src/Illuminate/Container/Container.php:799
Illuminate\Container\Container->call()
vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php:150
Illuminate\Support\ServiceProvider->callBootedCallbacks()
vendor/laravel/framework/src/Illuminate/Foundation/Application.php:1154
Illuminate\Foundation\Application->bootProvider()
vendor/laravel/framework/src/Illuminate/Foundation/Application.php:1132
array_walk()
vendor/laravel/framework/src/Illuminate/Foundation/Application.php:1131
Illuminate\Foundation\Application->boot()
vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php:17
Illuminate\Foundation\Bootstrap\BootProviders->bootstrap()
vendor/laravel/framework/src/Illuminate/Foundation/Application.php:342
Illuminate\Foundation\Application->bootstrapWith()
vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:186
Illuminate\Foundation\Http\Kernel->bootstrap()
vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:170
Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:144
Illuminate\Foundation\Http\Kernel->handle()
vendor/laravel/framework/src/Illuminate/Foundation/Application.php:1220
Illuminate\Foundation\Application->handleRequest()
public/index.php:20
1516// Bootstrap Laravel and handle the request...17/** @var Application $app */18$app = require_once __DIR__.'/../bootstrap/app.php';1920$app->handleRequest(Request::capture());21

Queries

mysql
select exists (select 1 from information_schema.tables where table_schema = schema() and table_name = 'site_settings' and table_type in ('BASE TABLE', 'SYSTEM VERSIONED')) as `exists`
1.29ms
mysql
select * from `site_settings` limit 1
0.51ms

Headers

accept
*/*
accept-encoding
br
host
amyradesign.com
user-agent
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
x-forwarded-for
216.73.217.105
x-forwarded-proto
https
x-real-ip
216.73.217.105
x-real-port
11208
x-forwarded-port
443
x-port
443
x-lscache
1

Body

// No request body

Routing

// No routing context

Routing parameters

// No routing parameters