#504

The code is right. Just check on the $question model you passed to the route questions.show and check if it is returning to null.

It could be that some of the model have null id attribute value of null. Or if you are still in the development stage and the data are fakes, you can do remigrate you tables and repopulate you data