skip to Main Content

column not found but column exists in laravel query

Below is my query in laravel project.In this query purchase_return_products.purchase amount actually exists but this show error '[2024-07-14 16:28:02] local.ERROR: Errors: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'purchase_return_products.purchase_amount' in 'field list' (Connection: mysql, SQL: select count(*) as aggregate from…

VIEW QUESTION

Laravel 11: BindingResolutionException: Target class [hash] does not exist during app bootstrap

I have just created a fresh Laravel project and installed Sentry for exception logging. Here is my bootstrap/app.php: <?php use IlluminateFoundationApplication; use IlluminateFoundationConfigurationExceptions; use IlluminateFoundationConfigurationMiddleware; use IlluminateSupportFacadesAuth; use SentryLaravelIntegration; use SentryStateScope; return Application::configure(basePath: dirname(__DIR__)) ->withRouting( web: __DIR__ . '/../routes/web.php', commands:…

VIEW QUESTION

Laravel – How can I fix the validation error when adding a file?

I work with laravel and cms orchid. Why a validation error occurs when adding a file via the upload component. Layout::rows([ Select::make('user_id') ->value($this->orders->user_id) ->fromModel(User::class, 'familia'), Upload::make('file')->maxFiles(1)->maxFileSize(50) ->title('Файл для вывода')->acceptedFiles('.pdf,.doc,.docx,.txt'), ]); Message of error: Validation error. File upload error. Code php.ini…

VIEW QUESTION
Back To Top
Search