Q:

Laravel 5.7 checking code in tinker, but i have a problem while getting values from model class?

my question is totaly different from that question, in that question they are telling about php versions and all, that question didn't solved my issue, thats why I haved asked my own question. @Álvaro González
I have created 4 models with this command
php artisan make:model class
php artisan make:model student
php artisan make:model subject
php artisan make:model user

I have created migrations and everything, but the problem is when I test my models in php artisan tinker with this command App\student::all(); then subject user and student models are working and shows me data but App\class::all(); is not working and showing me this error
PHP Parse error, Unexpected T_CLASS, Expecting T_STRING
I have also migration for class and also data is present in class table in database, but I don't know why it's not working, Any help would be appreciated Thanks

A:

This model is invalid:
class class extends Model
{
  //
}

