The Article model (app/Article.php) is created in the first minute of that tutorial on the commandline using:
php artisan make:model Article
A variable in PHP begins with a dollar sign $, so your code should read:
$name = 'jeff';
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
When following along with this tutorial: https://laracasts.com/series/laravel-5-fundamentals/episodes/8 first my app folder dosent contain Articles.php file
seccond when i type php artisan tinker on my shell of laragon local server its show something like this
λ php artisan tinker Psy Shell v0.6.1 (PHP 5.6.13 ظ¤ cli) by Justin Hileman
sname = 'jeff' PHP Parse error: Syntax error, unexpected '=' on line 1 sname = 'jeff';
but when lecturer on tutorial type this , dosnt recieve some thing like this [1] > ...
what is my problem?
The Article model (app/Article.php) is created in the first minute of that tutorial on the commandline using:
php artisan make:model Article
A variable in PHP begins with a dollar sign $, so your code should read:
$name = 'jeff';
Please or to participate in this conversation.