JeffreyWay / Laravel-4-Generators

Rapidly speed up your Laravel workflow with generators
https://packagist.org/packages/way/generators
MIT License
27 stars 9 forks source link

Generate Resource for "Media" #425

Closed Illizian closed 9 years ago

Illizian commented 9 years ago

Hi,

I haven't investigated too much at this stage. I will try and find some time to take a look this evening.

Running this command: $ php artisan generate:resource Media

The generator replaces Media with Medium for views & model: screenshot - 181114 - 16 06 26

this however doesn't occur using the model generator with the same name: screenshot - 181114 - 16 07 52

Very strange :)

Thanks

andrewhood125 commented 9 years ago

How interesting. So there is some very interesting pluralization going on here.

Medium has two plurals—media (the Latin plural) and mediums. While there is some gray area between the plurals, they are kept separate in several contexts. Media is used in reference to mass communications, where media are newspapers, radio, the internet, and so on.

From: http://grammarist.com/usage/media-mediums/

So maybe it's sensing your using a plural media and trying to use the singular medium for the model? I'm not sure.