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
Post a Comment