laravel-angular-admin
laravel-angular-admin copied to clipboard
Updating a fresh install gives errors regarding Dingo API
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.
@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.
Was this fixed or is this DOA?
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