You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was having issues in my app with a "Media" model. To check if the problem was in something that I did, I created a fresh Laravel installation. Then I did exactly the following steps:
That's because Laravel is pretty good at figuring out plurals. media is already the plural for medium so Eloquent will assume your table is called media. Either change that or add protected $table = 'medias' to your model.
I was having issues in my app with a "Media" model. To check if the problem was in something that I did, I created a fresh Laravel installation. Then I did exactly the following steps:
Then in my routes.php I did:
Did I something wrong?
PS: I created Medi model just as a "control group"
The text was updated successfully, but these errors were encountered: