gman01
514
8
Laravel

Laravel / Tinker error

Posted 2 years ago by gman01

Hi,

I am following the Laravel fundamentals video (really good). Wonder if someone can shed some light.

I've run php artisan make:model Article

Then gone into tinker

$Article = new App\Article; and i get => App\Article {#654}

I can then play about fine.

I then created a new database table (Cases) Created a new make:model Case

In Tinker: $Case = new App\Case;

It throws this error: PHP Parse error: Syntax error, unexpected T_CASE, expecting T_STRING on line 1

Case.php code:

Please sign in or create an account to participate in this conversation.