Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Controller stub show action redirect route ignoring --prefix #144

alexglue opened this issue May 16, 2016 · 1 comment


None yet
2 participants
Copy link

commented May 16, 2016

This is my usage case:
$ php artisan infyom:scaffold User --fromTable --tableName=users --save --prefix=admin
//datatables => true

    public function show($id)
        $user = $this->userRepository->findWithoutFail($id);

        if (empty($user)) {
            Flash::error('User not found');
            //here we got our fail:
            return redirect(route('users.index'));
            //this is because of missing $ROUTES_AS_PREFIX$:
            //return redirect(route('$MODEL_NAME_PLURAL_CAMEL$.index'));

        return view('')->with('user', $user);

mitulgolakiya added a commit that referenced this issue May 17, 2016

@mitulgolakiya mitulgolakiya added the bug label May 17, 2016


This comment has been minimized.

Copy link

commented May 17, 2016

@alexglue fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.