Flare Laravel Error Tracking
Get all these insights and more when you sign up for FlareLearn more
This is a public shared error.
Exception
PHP 
Serialization of 'Closure' is not allowed
return $this->belongsTo(Shop::class, 'shop_id');
}
//serialize
public function setInvoiceDetailsAttribute($value){
$this->attributes['invoice_details']= serialize($value);
}
public function getInvoiceDetailsAttribute(){
return unserialize($this->attributes['invoice_details']);
}
public function setTransactionResultAttribute($value){
$this->attributes['transaction_result']= serialize($value);
}
public function getTransactionResultAttribute(){
return unserialize($this->attributes['transaction_result']);
}
public function scopeStatus($query, int $status)
{
return $query->where('status', $status);
}
public function information()
{
return $this->hasOne(Order::class, 'transaction_id');

App

Routing

Action
App\Http\Controllers\PurchaseController@purchase
Route name
purchase
Route parameters
product
{
    "id": 8,
    "slug": null,
    "price": 25000,
    "shop_id": 4,
    "vip_price": null,
    "created_at": null,
    "deleted_at": null,
    "updated_at": null,
    "description": "در این دوره یاد میگیرید که چطور برای سایتتون آیکن طراحی کنید",
    "product_name": "دوره آموزش طراحی آیکن بخش اول",
    "deactivate_at": null,
    "product_status": 1,
    "download_locker": 0,
    "product_picture": "https://dl.doreland.ir/file/doreland-shop/icon-design-course/icon-one.jpg",
    "product_thumbnail": "https://dl.doreland.ir/file/doreland-shop/icon-design-course/icon-one.jpg"
}
Middleware
  • web
  • auth

Browser

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36

Request

http://127.0.0.1/order/8/purchase
GET
curl "http://127.0.0.1/order/8/purchase" \
   -X GET \
   -H 'host: 127.0.0.1:8000' \
   -H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9' \
   -H 'cookie: XSRF-TOKEN=eyJpdiI6Ing0bWF2d2d4a0x0Q2VNQ3gyMWluaGc9PSIsInZhbHVlIjoiZEhwWXQ5VEh1dkxNZFRJMjVmNXdmeUtRUnZLZ2JNWUJRUituVmUvcXRGditoSVdOb1ROcXNhSGNMRVl3OTJ5dVFMeTBXamRKNlFlb3pZd1FidUgzYjFIeCttZjZNaG5mQXlTQ1BUQnAvQ1BtR0NTeW0yL2hZUXdDUmIvVG0wYUEiLCJtYWMiOiJjZmUwZmM3ZjJhNzY3MWQwNGNiMTFmOWIxOTAzMmY1ZDg0YTIwYzNlYWRkNmYwNTk4NWJkZTIyMmZiNGIyYmUxIiwidGFnIjoiIn0%3D; matabamapp_session=eyJpdiI6Im5waHIxdGdkTFNhVDVpakx1UE1VRFE9PSIsInZhbHVlIjoiZmltZHJINXUwQ252VEdLVTZ4OFB6M3Fuajd5MmZXbTAvdkpKUjZmQ2YvSUFhQ0s1YjUwdWtXdUZmWjBLNk5QWmI3TmxxTlUrOFovdTc3aVBQS2pqKyt4aFBTV0FHMVlRNHVmNnFzN2RCWFlXYXd6RTBaNlYrZ2ZObnhVcHh2TDciLCJtYWMiOiI5NTYyOGRkYTk3ODg0NTYzNjE0ZWFjMGUwYWZhMTI4YTQzNjc2OGNiYWQ0NzQ1ZDg2MTllMGEwZmRiNDZkODZlIiwidGFnIjoiIn0%3D' \
   -H 'referer: http://127.0.0.1:8000/order?shop=4&product=8' \
   -H 'sec-ch-ua: "Chromium";v="106", "Google Chrome";v="106", "Not;A=Brand";v="99"' \
   -H 'connection: keep-alive' \
   -H 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36' \
   -H 'sec-fetch-dest: document' \
   -H 'sec-fetch-mode: navigate' \
   -H 'sec-fetch-site: same-origin' \
   -H 'sec-fetch-user: ?1' \
   -H 'accept-encoding: gzip, deflate, br' \
   -H 'accept-language: en-US,en;q=0.9' \
   -H 'sec-ch-ua-mobile: ?0' \
   -H 'sec-ch-ua-platform: "Windows"' \
   -H 'upgrade-insecure-requests: 1';

Headers

host
127.0.0.1:8000
accept
text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
cookie
XSRF-TOKEN=eyJpdiI6Ing0bWF2d2d4a0x0Q2VNQ3gyMWluaGc9PSIsInZhbHVlIjoiZEhwWXQ5VEh1dkxNZFRJMjVmNXdmeUtRUnZLZ2JNWUJRUituVmUvcXRGditoSVdOb1ROcXNhSGNMRVl3OTJ5dVFMeTBXamRKNlFlb3pZd1FidUgzYjFIeCttZjZNaG5mQXlTQ1BUQnAvQ1BtR0NTeW0yL2hZUXdDUmIvVG0wYUEiLCJtYWMiOiJjZmUwZmM3ZjJhNzY3MWQwNGNiMTFmOWIxOTAzMmY1ZDg0YTIwYzNlYWRkNmYwNTk4NWJkZTIyMmZiNGIyYmUxIiwidGFnIjoiIn0%3D; matabamapp_session=eyJpdiI6Im5waHIxdGdkTFNhVDVpakx1UE1VRFE9PSIsInZhbHVlIjoiZmltZHJINXUwQ252VEdLVTZ4OFB6M3Fuajd5MmZXbTAvdkpKUjZmQ2YvSUFhQ0s1YjUwdWtXdUZmWjBLNk5QWmI3TmxxTlUrOFovdTc3aVBQS2pqKyt4aFBTV0FHMVlRNHVmNnFzN2RCWFlXYXd6RTBaNlYrZ2ZObnhVcHh2TDciLCJtYWMiOiI5NTYyOGRkYTk3ODg0NTYzNjE0ZWFjMGUwYWZhMTI4YTQzNjc2OGNiYWQ0NzQ1ZDg2MTllMGEwZmRiNDZkODZlIiwidGFnIjoiIn0%3D
referer
http://127.0.0.1:8000/order?shop=4&product=8
sec-ch-ua
"Chromium";v="106", "Google Chrome";v="106", "Not;A=Brand";v="99"
connection
keep-alive
user-agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36
sec-fetch-dest
document
sec-fetch-mode
navigate
sec-fetch-site
same-origin
sec-fetch-user
?1
accept-encoding
gzip, deflate, br
accept-language
en-US,en;q=0.9
sec-ch-ua-mobile
?0
sec-ch-ua-platform
"Windows"
upgrade-insecure-requests
1

Body

[]

Session

link
http://127.0.0.1:8000/shop/4/8
user
{
    "id": 2,
    "last_name": "مرتضوی",
    "created_at": "2022-08-29T08:49:31.000000Z",
    "first_name": "مهدی",
    "updated_at": "2022-09-16T08:38:59.000000Z",
    "iban_number": "050560080280003601254001",
    "isRegistred": 1,
    "user_status": 1,
    "phone_number": "09118882744",
    "registred_at": null,
    "deactivate_at": null,
    "national_number": "2580510486"
}
_flash
{
    "new": [],
    "old": []
}
_token
EM03ODLs24iDN128d0FVp4cxt2p9z3fz0rUdI5FB
_previous
{
    "url": "http://127.0.0.1:8000/order?product=8&shop=4"
}
login_web_59ba36addc2b2f9401580f014c7f58ea4e30989d
2

Cookies

XSRF-TOKEN
EM03ODLs24iDN128d0FVp4cxt2p9z3fz0rUdI5FB
matabamapp_session
2OMn68ZZ9EZwlHbEXlUTZUsE04GP17rcWtVeMRfh

Context

User

ID: 2

{
    "id": 2,
    "last_name": "مرتضوی",
    "created_at": "2022-08-29T08:49:31.000000Z",
    "first_name": "مهدی",
    "updated_at": "2022-09-16T08:38:59.000000Z",
    "iban_number": "050560080280003601254001",
    "isRegistred": 1,
    "user_status": 1,
    "phone_number": "09118882744",
    "registred_at": null,
    "deactivate_at": null,
    "national_number": "2580510486"
}

Versions

laravel version
9.19.0
Laravel locale
en
Laravel config cached
false
Laravel debug
true
5:07:05 PM
Runtime 3.610112ms
Connection mysql
select * from `users` where `id` = 2 limit 1
5:07:11 PM
Runtime 0.64ms
Connection mysql
select * from `products` where `id` = 8 limit 1
5:07:13 PM
Runtime 0.570112ms
Connection mysql
select * from `shops` where `id` = 4 limit 1
5:07:14 PM
Runtime 1.060096ms
Connection mysql
select * from `users` where `id` = 2 limit 1
5:07:16 PM
Runtime 0.68992ms
Connection mysql
select exists(select * from `purchased_products` where `user_id` = 2 and `product_id` = 8) as `exists`
5:07:18 PM
Runtime 0.620032ms
Connection mysql
select * from `order_setting` where `id` = 2 limit 1
5:07:19 PM
Runtime 0.539904ms
Connection mysql
select * from `order_setting` where `id` = 1 limit 1
5:07:20 PM
Runtime 0.519936ms
Connection mysql
select * from `order_setting` where `id` = 2 limit 1
5:07:20 PM
Runtime 0.509952ms
Connection mysql
select * from `order_setting` where `id` = 3 limit 1
5:07:21 PM
Runtime 0.509952ms
Connection mysql
select * from `order_setting` where `id` = 2 limit 1
5:07:22 PM
Runtime 0.509952ms
Connection mysql
select * from `order_setting` where `id` = 1 limit 1
5:07:23 PM
Runtime 0.509952ms
Connection mysql
select * from `order_setting` where `id` = 2 limit 1
5:18:31 PM
Runtime 0.549888ms
Connection mysql
select * from `order_setting` where `id` = 2 limit 1
5:18:32 PM
Runtime 0.440064ms
Connection mysql
select * from `order_setting` where `id` = 1 limit 1
5:18:33 PM
Runtime 0.410112ms
Connection mysql
select * from `order_setting` where `id` = 2 limit 1
5:18:34 PM
Runtime 0.420096ms
Connection mysql
select * from `order_setting` where `id` = 4 limit 1
5:18:34 PM
Runtime 0.410112ms
Connection mysql
select * from `order_setting` where `id` = 1 limit 1
5:18:35 PM
Runtime 0.440064ms
Connection mysql
select * from `order_setting` where `id` = 2 limit 1
5:18:36 PM
Runtime 0.43008ms
Connection mysql
select * from `order_setting` where `id` = 3 limit 1
5:18:36 PM
Runtime 0.410112ms
Connection mysql
select * from `order_setting` where `id` = 2 limit 1
5:18:37 PM
Runtime 0.610048ms
Connection mysql
select * from `order_setting` where `id` = 1 limit 1
5:18:38 PM
Runtime 0.989952ms
Connection mysql
select * from `order_setting` where `id` = 2 limit 1
5:23:47 PM
Runtime 3.780096ms
Connection mysql
insert into `transactions` (`product_id`, `shop_id`, `total_price`, `invoice_details`, `payment_id`, `user_id`, `updated_at`, `created_at`) values (8, 4, 29724, O:25:"Shetabit\Multipay\Invoice":5:{s:7:"*uuid";s:36:"2bf1a0f1-d061-4e25-b424-abb0974b33d8";s:9:"*amount";d:29724;s:16:"*transactionId";N;s:9:"*driver";N;s:10:"*details";a:6:{s:11:"percentMode";i:1;s:6:"mobile";s:11:"09118882744";s:17:"multiplexingInfos";a:2:{i:0;a:2:{s:6:"amount";i:25000;s:11:"bankAccount";s:24:"050560080280003601254001";}i:1;a:2:{s:6:"amount";d:4430;s:11:"bankAccount";s:24:"590540100147001038011600";}}s:12:"product_name";s:53:"دوره آموزش طراحی آیکن بخش اول";s:9:"tax_value";d:2430;s:10:"GatewayFee";d:294;}}, 2f4681156ceab915ee5af67a98235a39, 2, 2022-10-21 18:23:50, 2022-10-21 18:23:50)