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...
Vina asked 5/3, 2017 at 9:21

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...
Boyle asked 28/8, 2018 at 7:17

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...
Oblast asked 16/12, 2015 at 9:38

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...
Stemma asked 26/8, 2018 at 12:13

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...
Larios asked 19/7, 2017 at 4:26

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...
Weizmann asked 13/2, 2017 at 11:9

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...
Zamindar asked 20/11, 2017 at 0:1

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 { ...
Harriot asked 31/10, 2015 at 17:46

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...

1

Solved

I have been trying to implement a REST API using the Laravel 5 Dingo API package. This is my routing code: $api->version('v1', function ($api) { $api->get('users/{id}', 'Api\V1\UsersContr...
Indecision asked 10/8, 2015 at 8:9
1

© 2022 - 2024 — McMap. All rights reserved.