No scopes applied to the details row api call #997
Closed
fahedaljghine
started this conversation in
BUG
Replies: 1 comment
-
so to solve this you need to publish livewire config, the default middleware_group is set to web, so either change that or add the middleware to the web group |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
so when you have a detailed row and click on that. this https://{site.com}/en/livewire/message/{model}-table will be triggered and it will execute a query form datasource method without applying any global scopes but the soft delete.
so first when loading the table this is the query
select * from
vendorswhere
vendors.
deleted_atis null and (
customer_id= ? or exists (select * from
vendor_customerswhere
vendors.
id=
vendor_customers.
vendor_idand
customer_id= ?))
when opeing the details row this is the query
"select * from
{model}where
{model}.
deleted_atis null"
Beta Was this translation helpful? Give feedback.
All reactions