Comments (5)
Hi @rbayley,
Have you tried applying query parameters specific to the Soft Deletable resources?
from laravel-orion.
Hi Alex,
Yes, I did, that's why I am able to soft delete and force delete the record.
The problem is when trying to GET or UPDATE the record after it has been soft or forced deleted. Record no longer exists and therefore Laravel replies with an error.
In other words, Laravel throws an Exception when fetching an inexistent record.
from laravel-orion.
If you are looking to customize how errors are returned in the response, I believe checking the render
method in App\Exceptions\Handler
and Illuminate\Foundation\Exceptions\Handler
might be a good idea 🤔
from laravel-orion.
@alexzarbn ouch !
I thought you might be throwing specific errors. Next time I will dig more into your code. But yeah, its the logical way.
After posting my question, I thought you would come up with something like that! 😢
Once again, great, great package!
from laravel-orion.
404 is already a specific error, throwing something else would be a violation of many standards, I think.
from laravel-orion.
Related Issues (20)
- Call to a member function requestedRelations() on null HOT 1
- GET request pending after STORE operation on IOS ONLY HOT 1
- Sorting included relationships HOT 1
- Regression: impossible to call sub-relations with the QueryBuilder HOT 4
- Can't use 'max_nested_depth' => 1 with in Request HOT 4
- Unable to Publish Vendor Config in Laravel-Orion HOT 1
- Including more content in the OpenAPI 3 specs HOT 1
- Customize Database Driver HOT 1
- artisan orion:specs does not work HOT 2
- Search endpoint not present HOT 6
- Documentation error: Access level to [Controller]::filterableBy() must be public (as in class Orion\Http\Controllers\BaseController) HOT 1
- Custom Resource not working HOT 2
- Meilisearch Compatibility HOT 1
- This action is unauthorized. HOT 1
- Upgrade Symfony YAML
- which policy method are use in sync api call HOT 2
- return value in performSync HOT 1
- Search by nested relationships HOT 1
- Find and Filter Data From Others Tabel But Need To initialize Model Name (string) HOT 1
- Weird scope issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-orion.