dingo-api Questions
2
Solved
I am trying to develop a rest api using lumen. For authentication I am using Dingo and JWTAuth api, but I am getting the following message:
Auth guard driver [api] is not defined.
Below is a s...
4
Solved
I want to allow two domains for CORS in my laravel to be able work with it locally and on the server, thus I don't wan't to expose my app to any domain. That is shat I have for now
public function...
4
I have been developing a set of rest APIs to be exposed for mobile apps. I am following the repository pattern for the development on the Laravel project. How do I implement a presenter and transfo...
2
I have a middleware that authenticates a JWT user using tymon/jwt-auth package:
public function handle($request, \Closure $next)
{
if (! $token = $this->auth->setRequest($request)->getTo...
Tran asked 13/4, 2016 at 19:11
3
Solved
I've two tables to save data to. One of them has foreign key so that I have one-to-many relationship. However, I don't understand how to save data into two table simultaneously. I have one query wh...
2
I'm using laravel 5.3 to build api and backend management for mobile app.
I'm integrated Dingo/api package and use Oauth2 for authenticate.
I made an API and login with postman:
API url: mydomain/...
Premium asked 11/1, 2017 at 10:13
2
Solved
I'm using Laravel 5.4 and I wrote something like:
Cookie::queue(
'refresh_token',
$data->refresh_token,
864000, // 10 days
null,
null,
false,
true // HttpOnly
);
return response('hel...
2
Solved
I use Dingo with Laravel 5.1 to create simple API.
So at route.php I have:
$api = app('Dingo\Api\Routing\Router');
$api->version('v1', function($api) {
$api->get('getvoucher', 'App\Http\...
Warden asked 5/1, 2018 at 17:57
1
I have configure dingo package in laravel 5.1 but while I try to access
http://localhost:8000/test
it is showing following error
{"message":"404 Not Found","status_code":404,"debug":{"line":16...
1
Solved
I am using Laravel 5.4 with Dingo API, and I'm trying to get Laravel's OAuth 2.0 (Passport) to work with Internal Dingo requests. Previously, I was using JWT, but now I wish to use OAuth. This is m...
3
Solved
is it there an easy way to remove the "data" envelope from the Dingo API response.
When I use this Transformer to transform user models:
class UserTransformer extends EloquentModelTransformer
{
...
2
Solved
I have been using laravel to build my APIs. I use transformers to tranform data from model object.
Now instead of database, I have a response coming from an API as the data source and I want to tr...
Blodgett asked 6/7, 2017 at 6:56
1
© 2022 - 2024 — McMap. All rights reserved.