php - Class does not exist laravel 5.3 -
namespace myapp\http\requests; use illuminate\foundation\http\formrequest; class createadmingroup extends formrequest { public function authorize() { return false; } public function rules() { return [ // ]; } }
my controller:
namespace myapp\http\controllers\administration\resource; use myapp\http\requests\admin\admin\createadmingroup;
but error class swapsome\http\requests\admin\admin\createadmingroup not exist
why error, request there, shuold good. request in app\http\requests\admin\admin\ folder
thank you!
change request's namespace to: namespace myapp\http\requests\admin\admin;
Comments
Post a Comment