Questions tagged [dingo-api]

A RESTful API package for the Laravel framework.

197 questions
3
votes
1 answer

Use built in Laravel 5.2 auth and load SPA then Dingo API for all other routes

I'm trying to work out if it's possible to use the regular Laravel Authentication routes with blade/views for basic Auth then load the SPA (Vue.js with it's own router) and make calls to the API via Dingo? At the moment I have this at this top of my…
Jack Barham
  • 3,197
  • 10
  • 41
  • 62
3
votes
3 answers

Request validation allways passes on Laravel using Dingo/Api

I'm using dingo/api package. Controller: public function register(RegisterUserRequest $request) { dd('a'); } And for example the email field is required:
HTMHell
  • 5,761
  • 5
  • 37
  • 79
3
votes
1 answer

Laravel 5.1, Dingo - Nested Transformers

Is there an elegant way to nest transformers for relationship use? I'm looking to build a REST interface that allows for collections to conditionally include relationship models. So far I've been marginally successful, but it seems to break down a…
John Jemsek
  • 61
  • 1
  • 4
2
votes
0 answers

After Laravel internal API call controller redirects to localhost

I am using Laravel internal API calls, After internal call is complete i want to redirect to list page via same controller function. when i use redirect methods to redirect it redirects to http://localhost/ localhost should be IP address of website,…
Rupesh Terase
  • 440
  • 3
  • 14
2
votes
3 answers

Facebook Socialite get user from token and secret

In laravel docs there is a part about getting user from using ->userFromTokenAndSecret however it seems to be not working with facebook and returns an error that this method doesn't exist. How do I get the user by token and secret? I'm using Laravel…
Sergey
  • 7,184
  • 13
  • 42
  • 85
2
votes
1 answer

Laravel dingo api group by multiple domains

Is it possible to group dingo api routes with multiple domains? For example $api->group(['domain' => ['something.com', 'anotherexample.com]], function ($api) { // My routes });
irakli
  • 62
  • 8
2
votes
0 answers

Dingo "Unauthenticated" error message for logged In users in laravel 5.5

I'm using [Dingo/api][1] laravel package to create an API. I worked with it before and I have not this problem. this is my routes in the api.php file: $api = app('Dingo\Api\Routing\Router'); $api->version('v1', ['prefix' => 'v1', 'namespace' =>…
Ahmad Badpey
  • 6,348
  • 16
  • 93
  • 159
2
votes
0 answers

php artisan api:routes error: Route is not bound

i am new into RESTful API in development in Laravel and i just installed Dingo API. When i run the command php artisan route:list its giving me the list of routes in the project, when i run php artisan api:routes i am getting this error I have…
Flash
  • 1,105
  • 14
  • 16
2
votes
1 answer

Lumen/Dingo API Dynamic Versioning

I'm using Lumen for my project, currently the way I version my API is through prefixing and using a specific corresponding controller like so: $api->get('/v1/users', 'App\Api\V1\Controllers\UserController@show'); $api->get('/v2/users',…
2
votes
1 answer

Laravel Dingo nested transformers

I'm trying to get one to many relationship objects with transformers. I want to get include metas but i only get just regular transform fields. my transformer: class AssistantTransformer extends TransformerAbstract { protected…
I.Jokhadze
  • 33
  • 3
2
votes
1 answer

Call laravel backend api from angular 2

I am developing a website fronted in angular2 and an api in laravel with dingo. Now I want to get the data from this api in angular 2. But of course I want to protect the api so that for now only my angular frontend is allowed to get a response from…
maesk
  • 233
  • 1
  • 4
  • 11
2
votes
0 answers

Custom claims reset on refresh token

I'm using dingo-api with tymondesigns/jwt-auth for JWT auth provider. I generate tokens with custom claims for user details. However, on token refresh, the new token resets the claims. I've resorted to doing: # Refresh and set…
Murwa
  • 2,238
  • 1
  • 20
  • 21
2
votes
3 answers

Fatal error: Class 'Dingo\Api\Auth\Provider\LaravelServiceProvider' not found

I create new laravel(5.3) project with composer and install dingo package with this command: composer require dingo/api:1.0.x@dev Then I try to publish it as I see in this video. Here is the screenshot of my cmd window: I also added…
TyForHelpDude
  • 4,828
  • 10
  • 48
  • 96
2
votes
0 answers

Duplicate Email Address error in new User Registration Dingo/Jwt Laravel

I am having a challenge with registering new users. I am accessing the BackEnd from an Android app (API). I am using this Laravel API Boilerplate Here is my validation rule; 'signup_fields_rules' => [ 'sname' => 'required', 'fname'…
BlackPearl
  • 2,532
  • 3
  • 33
  • 49
2
votes
0 answers

5.1 -> 5.2 Laravel Breaking Change With Dingo API

I have a controller that is supposed to return an array of objects. It looks like this: public function index($account) { if(Auth::user()->accounts->contains($account)) { $drones =…
Joshua Ziering
  • 145
  • 2
  • 8
1 2
3
13 14