Comments (3)
Can you please clarify what you mean?
If you are asking how can you use this list of auth providers, then yes it is by using the api.auth middleware as you mentioned. For example, put all authenticated routes under a group with this middleware like so:
$api->group(['middleware' => ['api.auth']], function (Router $api) {
});
from api.
Can you please clarify what you mean?
If you are asking how can you use this list of auth providers, then yes it is by using the api.auth middleware as you mentioned. For example, put all authenticated routes under a group with this middleware like so:
$api->group(['middleware' => ['api.auth']], function (Router $api) { });
Thank you!My mean is that I want to use AdminAuthProvider, because of some interfaces need to use AdminAuthProvider, other interfaces need to ApiAuthProvider。So How to differentiated to use different of provider.
from api.
Can you please clarify what you mean?
If you are asking how can you use this list of auth providers, then yes it is by using the api.auth middleware as you mentioned. For example, put all authenticated routes under a group with this middleware like so:
$api->group(['middleware' => ['api.auth']], function (Router $api) { });
Thank you!My mean is that I want to use AdminAuthProvider, because of some interfaces need to use AdminAuthProvider, other interfaces need to ApiAuthProvider。So How to differentiated to use different of provider.
from api.
Related Issues (20)
- Can't install in laravel6 HOT 2
- front-end when i call api then getting 405 Method Not Allowed HOT 3
- Missing required parameter for [Route: users.show] [URI: api/users/{id}] [Missing parameter: id]
- $api->resoure () report an error,flushMiddlewareGroups method not work HOT 1
- The version given was unknown or has no registered routes.
- Bug with PHPUnit coverage: Uncaught Illuminate\Contracts\Container\BindingResolutionException: Target [Dingo\Api\Contract\Routing\Adapter] is not instantiable while building [Dingo\Api\Routing\Router] HOT 1
- When declaring multiple resource routes, all but the first fail to pass the parameter correctly.
- In Handler.php line 67: Dingo\Api\Exception\Handler::__construct(): Argument #2 ($format) must be of type array, null given, called in /dingo/api/src/Provider/DingoServiceProvider.php on line 123 HOT 1
- $appends variables function got additional 3 times execution
- Djdnxb
- Ảnh
- Whether it will be updated HOT 1
- Getting this error "Unable to resolve transformer binding"
- API
- Laravel 9 issue while try to install dingo HOT 1
- #Luděk
- Nasa
- N
- Weeeeee
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 api.