silverbux / laravel-angular-admin

Laravel + Angularjs + Bootstrap + AdminLTE binded by Gulp workflow Admin Dashboard Boilerplate / Starter.
http://silverbux.github.io/laravel-angular-admin/
MIT License
925 stars 414 forks source link

Updating a fresh install gives errors regarding Dingo API #72

Open ixperiencenl opened 7 years ago

ixperiencenl commented 7 years ago

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 commented 7 years ago

@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 commented 7 years ago

Was this fixed or is this DOA?

xorenio commented 7 years ago

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

npm WARN deprecated line-numbers@0.2.0: Copy its ~20 LOC directly into your code instead. npm WARN deprecated graceful-fs@2.0.3: 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 minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated graceful-fs@1.2.3: 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 minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated minimatch@1.0.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated node-uuid@1.4.7: use uuid module instead npm WARN deprecated chalkline@0.0.4: No longer sponsored by CT - please visit http://niftylettuce.com for more info Killed ..] - extract:cli: sill gunzTarPerm extractEntry vendor/toaste