I tried out the scenario as-is and it works. Do you have debugging on? If you go in .env
file, check if APP_DEBUG
variable is set to true
.
Once done, try loading the page and post the error you see.
PS: Also check if MyController
controller has been created.