Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Updating a fresh install gives errors regarding Dingo API #72

Open
ixperiencenl opened this issue Sep 17, 2016 · 3 comments
Open

Updating a fresh install gives errors regarding Dingo API #72

ixperiencenl opened this issue Sep 17, 2016 · 3 comments

Comments

@ixperiencenl
Copy link

ixperiencenl commented Sep 17, 2016

When pulling a fresh install from git and after installing it, updating with composer generates the following Artisan error:
[Symfony\Component\Debug\Exception\FatalErrorException] Call to undefined method Dingo\Api\Routing\Router::controller()

You can test this by installing a new bare copy of the framework and then do a composer update. I don't know how to fix this, as Dingo is probably the problem. Maybe using an older Dingo version does the trick.

Installer wanted to install version 242411e of Dingo Api:

 - Removing dingo/api (v1.0.0-beta3)
 - Installing dingo/api (dev-master 242411e)
   Loading from cache

Workaround: use the Dingo API version '1.0.0-beta3' to avoid crashing it.

@RamiMustaklem
Copy link

@ixperiencenl late versions of Laravel 5.2 and above stopped supporting the Route::controller() method, you could use resource routes or explicit Route::get() for each route you use in routes.php.
It's always better to split them all up since you might use different middlewares to different methods inside the same controller.
Make sure the new routes go well together with the angularjs restangular conventions.

@xorenio
Copy link

xorenio commented Jan 4, 2017

Was this fixed or is this DOA?

@xorenio
Copy link

xorenio commented Jan 5, 2017

just as a follow up it seems to be on fresh install then npm install I got the following

npm WARN deprecated [email protected]: Copy its ~20 LOC directly into your code instead.
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: use uuid module instead
npm WARN deprecated [email protected]: No longer sponsored by CT - please visit http://niftylettuce.com for more info
Killed ..] - extract:cli: sill gunzTarPerm extractEntry vendor/toaste

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants