TypeError
TypeError
Illuminate\Auth\SessionGuard::setUser(): Argument #1 ($user) must be of type Illuminate\Contracts\Auth\Authenticatable, null given, called in /home/linkloads/public_html/TEST_REPORTS/scripts/invoice_mail_test.php on line 34
GET localhost
PHP 8.2.35 — Laravel 11.54.0
vendor/laravel/framework/src/Illuminate/Auth/SessionGuard.php
:970
TEST_REPORTS/scripts/invoice_mail_test.php
:34
TEST_REPORTS/scripts/invoice_mail_test.php
:68
Request
GET
/customer-invoice/pdf/63103
Headers
host
localhost
user-agent
Symfony
accept
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
accept-language
en-us,en;q=0.5
accept-charset
ISO-8859-1,utf-8;q=0.7,*;q=0.7
Body
{
"ff": "t"
}
Application
Routing
controller
App\Http\Controllers\InvoiceController@customerInvoicePdf
middleware
web, auth, password.expiry, non-superadmin
Routing Parameters
{
"id": "63103"
}
Database Queries
mysql
(141.72 ms)
select `id` from `load_orders` where `created_by` = 218 and `lead_id` is not null and `order_id` is not null
mysql
(140.24 ms)
select `invoiceable_id` from `invoices` where `invoiceable_type` = 'App\Models\LoadOrder' and `type` = 'customer' and `invoiceable_id` in (63102, 63103, 63105, 63115, 63116, 63119, 63120, 63134, 63141, 63142, 63150, 63151, 63152, 63153, 63162)
mysql
(140.52 ms)
select * from `load_orders` where `load_orders`.`id` = 63103 limit 1
mysql
(140.99 ms)
select * from `load_orders` where `id` in (63103, 63105, 63120, 63141, 63142, 63150, 63151, 63152, 63162) and `lead_id` != '330' limit 1
mysql
(141.37 ms)
update `load_orders` set `status` = 'invoicing-pending', `load_orders`.`updated_at` = '2026-11-06 07:02:26' where `id` in (63103, 63105)
mysql
(140.54 ms)
select `id` from `invoices` where `invoiceable_id` in (63103, 63105) and `type` = 'customer'
mysql
(140.61 ms)
delete from `invoice_payments` where `invoice_id` in (63106, 63118)
mysql
(140.43 ms)
delete from `customer_account` where `lead_id` = '330'
mysql
(139.97 ms)
insert into `customer_account` (`lead_id`, `invoice_email`, `created_at`, `updated_at`) values ('330', 'ap@customer-one.example', '2026-11-06 07:02:27', '2026-11-06 07:02:27')
mysql
(140.31 ms)
update `dispatches` set `pod` = 'asset/pods/test_pod_invoice_mail.pdf' where `load_order_id` = 63103
mysql
(139.95 ms)
delete from `cache` where `key` in ('spatie.permission.cache', 'illuminate:cache:flexible:created:spatie.permission.cache')
mysql
(140.57 ms)
select * from `users` where `users`.`id` = 218 limit 1
mysql
(140.59 ms)
select * from `sessions` where `id` = 'ple4wcopcLkFXkyoOYzhbiDJ4rYnBbZdbmTodlBY' limit 1
mysql
(140.17 ms)
select * from `users` where `users`.`id` = 218 limit 1
mysql
(210.35 ms)
select `countries`.*, `user_countries`.`user_id` as `pivot_user_id`, `user_countries`.`country_id` as `pivot_country_id`, `user_countries`.`is_default` as `pivot_is_default` from `countries` inner join `user_countries` on `countries`.`id` = `user_countries`.`country_id` where `user_countries`.`user_id` = 218
mysql
(140.65 ms)
select * from `load_orders` where `load_orders`.`id` = '63103' limit 1
mysql
(140.05 ms)
select * from `master_emails` where `module` = 'invoice' and `created_by` = 218 limit 1
mysql
(140.54 ms)
select * from `load_orders` where `load_orders`.`id` = 63103 limit 1
mysql
(140.36 ms)
select * from `lead` where `lead`.`id` in (330)
mysql
(140.29 ms)
select * from `customer_address` where `type` = 'primary' and `customer_address`.`lead_id` in (330)
mysql
(139.84 ms)
select * from `cities` where `cities`.`id` in (112098)
mysql
(140.26 ms)
select * from `customer_account` where `customer_account`.`lead_id` in (330)
mysql
(140.19 ms)
select `id`, `lead_id`, `terms_days` from `lead_customer` where `lead_customer`.`lead_id` in ('330')
mysql
(140.83 ms)
select * from `users` where `users`.`unique_code` in ('402')
mysql
(140.22 ms)
select * from `users` where `users`.`id` in (218)
mysql
(140.35 ms)
select * from `mode_of_transport` where `mode_of_transport`.`id` in (33)
mysql
(140.64 ms)
select * from `terms_condition` where `terms_condition`.`id` in (41)
mysql
(140.53 ms)
select * from `load_order_rows` where `load_order_rows`.`load_order_id` in (63103)
mysql
(140.34 ms)
select * from `equipments` where `equipments`.`id` in (38)
mysql
(140.47 ms)
select * from `load_order_pickups` where `load_order_pickups`.`load_order_row_id` in (459)
mysql
(140.32 ms)
select * from `countries` where `countries`.`id` in (101)
mysql
(140.73 ms)
select * from `load_order_deliveries` where `load_order_deliveries`.`load_order_row_id` in (459)
mysql
(140.87 ms)
select * from `countries` where `countries`.`id` in (233)
mysql
(140.79 ms)
select * from `states` where `states`.`id` in (1409)
mysql
(140.29 ms)
select * from `cities` where `cities`.`id` in (111469)
mysql
(141.05 ms)
select * from `load_order_warehouses` where `load_order_warehouses`.`load_order_row_id` in (459)
mysql
(140.73 ms)
select * from `location` where `location`.`id` in (206)
mysql
(140.34 ms)
select * from `load_order_shippings` where `load_order_shippings`.`load_order_row_id` in (459)
mysql
(141.08 ms)
select * from `load_order_shipping_rows` where `load_order_shipping_rows`.`load_order_shipping_id` in (375)
mysql
(140.5 ms)
select * from `load_order_additionals` where `load_order_additionals`.`load_order_row_id` in (459)
mysql
(140.09 ms)
select * from `load_order_charges` where `load_order_charges`.`load_order_id` in (63103)
mysql
(140.14 ms)
select * from `load_order_discounts` where `load_order_discounts`.`load_order_id` in (63103)
mysql
(139.86 ms)
select * from `discount` where `discount`.`id` in (0)
mysql
(140.58 ms)
select * from `invoices` where `type` = 'customer' and `invoices`.`invoiceable_id` in (63103) and `invoices`.`invoiceable_type` = 'App\Models\LoadOrder'
mysql
(140.63 ms)
select * from `invoice_payments` where `invoice_payments`.`invoice_id` in (63106)
mysql
(139.82 ms)
select * from `users` where `users`.`id` = 218 limit 1
mysql
(140.66 ms)
select * from `terms_condition` where `created_by` = 218 and `is_active` = 1 and `module` = 'invoice' limit 1
mysql
(140.03 ms)
select * from `sessions` where `id` = 'ple4wcopcLkFXkyoOYzhbiDJ4rYnBbZdbmTodlBY' limit 1
mysql
(139.58 ms)
insert into `sessions` (`payload`, `last_activity`, `user_id`, `ip_address`, `user_agent`, `id`) values ('YTozOntzOjY6Il90b2tlbiI7czo0MDoiazFlb3V4eUVLaGVqTGs4MUdzb294b2NVNHVRVzQ1azRuekh4SVFVaCI7czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6NDg6Imh0dHA6Ly9sb2NhbGhvc3QvY3VzdG9tZXItaW52b2ljZS9wZGYvNjMxMDM/ZmY9dCI7fXM6NjoiX2ZsYXNoIjthOjI6e3M6Mzoib2xkIjthOjA6e31zOjM6Im5ldyI7YTowOnt9fX0=', 1793948553, 218, '127.0.0.1', 'Symfony', 'ple4wcopcLkFXkyoOYzhbiDJ4rYnBbZdbmTodlBY')
mysql
(139.78 ms)
delete from `cache` where `key` in ('spatie.permission.cache', 'illuminate:cache:flexible:created:spatie.permission.cache')
mysql
(140.06 ms)
select * from `users` where `users`.`id` = 808 limit 1
mysql
(140.29 ms)
delete from `cache` where `key` in ('spatie.permission.cache', 'illuminate:cache:flexible:created:spatie.permission.cache')