Comments (2)
I've solved it like this for now.
Just not too happy with losing the store logic from this package. I still do not see how I can use performStore() with my current logic, as the method seems to only accept freshly stored models.
public function store(Request $request)
{
$action = new StoreLabelAction;
$user = $action->execute($request->all());
return $this->successResponse(201, __('Label created'), $label);
}
The StoreLabelAction remains unchanged.
from laravel-orion.
Hi @axtg,
The current implementation of Laravel Orion does not have a concept of "actions". Trying to make it work with this concept will not result in a clean and working solution, unless it is supported on the package level.
If you would like to customize the behavior of queries, please check the Customizing Queries section of the docs.
It is also possible (and actually recommended) to put any additional business logic in Hooks. How that logic is orchestrated and executed there is solely app's (developer's) responsibility - Laravel Orion just provides a tooling to accomplish this.
from laravel-orion.
Related Issues (20)
- How can i set default get record order by id descending order? HOT 1
- 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
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.