My folder structure for controllers is:
and I use following route code to access those controllers.
here I have allocated subfolders inside Controller folder and updated namespaces as per needed on files and routes accordingly,this works perfectly,however when I use request file for validating form.It gives error:
Argument 1 passed to App\Http\Controllers\site\usersController::store() must be an instance of Illuminate\Http\Request, string given
but when I move all controllers file to Controller folder and don't use subfolder,form request validation works.What should I do beside updating namespace in routes and controller file to make everything work?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1UWz3sE
via IFTTT
Aucun commentaire:
Enregistrer un commentaire