Skip to content

Resourceful controller broken after L4 update  #226

@driesvints

Description

@driesvints

For some reason I can't get my resourceful controller back to work after updating L4. I updated both the framework through composer and development version at laravel/laravel.

I'm getting errors while doing (in a view):

URL::action('UsersController@show', array($user->id))

Error:

ErrorException: Warning: array_combine(): Both parameters should have an equal number of elements in
/foo/bar/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php line 185

I also can't seem to go to admin/users/1. It gives me a NotFoundHttpException:

I have my route set up as

Route::resource('admin/users', 'UsersController');

The resourceful controller was generated through artisan.

Can anyone perhaps help me out?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions