Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add withoutGlobalScopes to controller #92

Open
MichailSuroven opened this issue May 25, 2021 · 3 comments
Open

add withoutGlobalScopes to controller #92

MichailSuroven opened this issue May 25, 2021 · 3 comments

Comments

@MichailSuroven
Copy link

Global scopes like soft delete breakes controller

Must be somthing like this:

$model = $request->modelClass::withoutGlobalScopes()->find($request->dependKey);

or need to define some closure to prepare model query

@orlyapps
Copy link
Owner

@MichailSuroven please make a PR and i will merge ist asap

@MichailSuroven
Copy link
Author

seems my composer take renovate branch instead of master

but in master branch i guess field.js compiled from old resource, so any request not contain dependOn prop and fails, i cant check newer version

@orlyapps
Copy link
Owner

@MichailSuroven ah yes. The master is currently in development and not stable. Let us release v3 and then you can make a pr. Sorry for the delay D:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants