Comments (2)
It is now possible to disable all batch routes at once using ->withoutBatch
method on a resource.
Documentation has been updated with relevant information.
// example usage
Orion::resource('posts', 'API\PostsController')->withoutBatch();
from laravel-orion.
Hi @xnf4o,
When you register a route, it returns an instance of Laravel's PendingResourceRegistration
class.
You can use ->except
method to disable specific routes.
In your case:
Orion::resource('posts', 'API\PostsController')->except(['batchStore', 'batchUpdate', 'batchDestroy']);
However, I will look into providing an additional method (something like ->withoutBatch()
) that would disable all batch routes at once.
from laravel-orion.
Related Issues (20)
- Including a relation of a polymorphic relation is not working anymore HOT 1
- [Question] How to add additional information to generated documentation? HOT 2
- Selecting fields HOT 1
- Follow Laravel naming conventions for API Resources (specially for Resource Collections) HOT 1
- Cannot use relation with the same name in orion routes HOT 2
- Filtering relationships with LIMIT HOT 1
- Can't sort based on created_at in HasMany relationship HOT 1
- Dosent not work with resolveRelationUsing HOT 1
- Error on viewAny policy in relation controller routes
- Please add an ability to use Alova.js instead Axios for Orion.makeHttpClientUsing(...) HOT 1
- Modular (non-standard) app architectures
- Case-insensitive does not work with JSON field type HOT 1
- filterableBy nested relation: Call to undefined method HOT 1
- Using 'include' on PATCH/update requests give "1054 Unknown column 'include' in 'field list' " HOT 1
- 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
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.