Symptom: You get an error page saying
Missing required parameters for [Route...]
Cause: There are two possible causes:
You dont have a primary-key for your table
You have a primary-key but it's not called id
id
Solution: As there are two causes, there are also two solutions: 1. Simply create a field id for the table 2. Tell your model about your primary-key: protected $primaryKey = 'your_primary_key';
protected $primaryKey = 'your_primary_key';
Please consider following Eloquents model conventionsarrow-up-right
Last updated 3 years ago