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

PHP Fatal error // After setup if prefix is used its looking for AppBaseController in all the prefix dir's #137

Closed
phillipmadsen opened this issue May 10, 2016 · 5 comments

Comments

Projects
None yet
2 participants
@phillipmadsen
Copy link
Contributor

commented May 10, 2016

PHP Fatal error: Class 'App\Http\Controllers\Admin\AppBaseController' not found in /home/vagrant/home/app/Http/Controllers/Admin/ArticleController.php on line 14

_Got this after running:_

php artisan infyom:api_scaffold Product --fieldsFile='resources/model_schemas/Product.json' --prefix=admin

@phillipmadsen

This comment has been minimized.

Copy link
Contributor Author

commented May 10, 2016

temporary fix I put

use App\Http\Controllers\AppBaseController;

This uses the AppBaseController in the non prefixed directory. I have not tested if this will work or cause issues I am just giving you a heads up.

@phillipmadsen

This comment has been minimized.

Copy link
Contributor Author

commented May 11, 2016

The temp fix did not work. This is also looking for AppBaseController in the api directories

@mitulgolakiya

This comment has been minimized.

Copy link
Member

commented May 11, 2016

@phillipmadsen I am already on it and will push a fix by this weekend.

@mitulgolakiya mitulgolakiya added this to the 0.1 milestone May 11, 2016

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

@mitulgolakiya

This comment has been minimized.

Copy link
Member

commented May 17, 2016

@phillipmadsen this is fixed in develop branch. Please check and confirm it.

@mitulgolakiya mitulgolakiya added completed and removed in-progress labels May 20, 2016

@phillipmadsen

This comment has been minimized.

Copy link
Contributor Author

commented Jun 3, 2016

my develop branch is still looking for it and others.

#179

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.