-
Notifications
You must be signed in to change notification settings - Fork 340
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
usesSoftDelete trait being applied despite being set as false in config #338
Comments
Hey @06chaynes. Can you detail your problem with a real use case? What is the behavior that is not working as expected? |
When I apply scout's Searchable trait to my model that does not implement soft deletes, it attempts to apply the usesSoftDeletes trait anyways. This is causing a conflict with another trait the model is inheriting. I thought that setting 'soft_delete' to false in the scout config would stop it from applying the usesSoftDelete trait on the model. |
No problem. I am here to help you. Two questions:
|
After applying the Searchable trait to my model (App\Models\Organization), I get the following error when running artisan commands like 'scout:import' or 'config:cache': |
Thanks for the detail. Your model is using a trait that also contains Setting Hopes this helps, I will close this issue because there no bug on Laravel Scout. Please consider to ask some help in our support channels: |
Ah, I was looking at it wrong I see. I decided to fork the other package in question and rename the conflicting method, all good now. Thanks again! |
I am getting an error on a model regarding the trait method 'usesSoftDelete' failing to apply. I have 'soft_delete' set as false in the scout.php config file, so I wasn't expecting for the trait to be applied at all. Is this behaviour to be expected?
scout v6.1.3
The text was updated successfully, but these errors were encountered: