I know it's not possible to use a reserved word in PHP as class name, but my Laravel app enables managing of courses and classes, so I have a database table called classes
, a ClassController
and hopefully a Class
model. However, in Laravel, my model has to be named Class
which is not allowed in PHP:
class Class extends Model {}
Using a synonym, the closest being Lecture
, still doesn't seem right.
Is there a Laravel workaround to this?