I’m trying to update a record in my laravel application In my app management blade I have a link to a single record
I have a problem with one of my route when I try to access it, I have this error : “AppEntityCompanyUser object not found by the @ParamConverter annotation” Many people have the same problem but … In my application, I use Symfony 4. I want Symfony to search for controllers in two directories: A and B. I found something like this: controllers: resource: ‘../src/DirectoryA/Controller/’ … So Consider the following: This explodes when I hit any of these routes because: Is there not a way in laravel 5.6 to say: No I don’t want to use AppHttpControllers I want to use the namespace I specified? Answer Try with a slash ->namespace(‘AppModulesConfigControllers’) I deployed a PHP application and when I hit the url, I get the following error: I guess it tries to go into the app/ directory but it can’t. My project structure: What the log shows: Procfile .htaccess Answer Ehhmm so I found the solution. My Procfile had a .txt extension (so Procfile.txt) whereas it needs to be only Procfile. I am setting endpoints for my web application like this: $router = new LeagueRouteRouteCollection; function user_action (Request $request, Response $response) { // some logic . . . … I know I can access current route name by $request->get(‘_route’);. If my route is defined this way: How can I retrieve the id variable from within service? Answer $request->attributes->get(‘id’) does the trick.“AppEntityUser object not found by the @ParamConverter annotation”
Symfony 4 – controllers in two directories
Defining custom namespaces on routes in laravel 5.6
Heroku 403 Forbidden Error
How to deal with extra “/” in phpleague route?
Symfony2 Accessing route variables