php - Eloquent Tinker - Undefined Constant -



php - Eloquent Tinker - Undefined Constant -

i'm next along set of tutorials on laravel (they're excellent), , maintain running error:

php error: utilize of undefined constant article

whenever come in line of code:

$article = new app/article;

i've followed letter, , used command:

$ php artisan make:model article model created successfully. created migration: 2015_04_11_152306_create_ar

what find unusual in tutorial, no migration created when command called. anyways, i'm trying come in info sqlite database through tinker, i'm unable create article object, , hence cannot insert database. how got either solving or bypassing issue?

you should utilize backslash \:

$article = new app\article;

php laravel eloquent artisan artisan-migrate

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -