laravel 4.2 is no error with tinker
but laravel 5.0 is error
$> git clone https://github.com/laravel/laravel
$> git checkout develop
$> composer install
$> php artisan tinker
[1] > (new User); PHP Fatal error: Class 'User' not found in /var/www/html/test3/laravel/vendor/d11wtq/boris/lib/Boris/EvalWorker.php(133) : eval()'d code on line 1
When following along with this tutorial: https://laracasts.com/series/laravel-5-fundamentals/episodes/8
This command gives me an error: $article = new App\Article;
PHP Fatal error: Class 'App\Article' not found in eval()'d code on line 1
article.php is inside of the app folder.
Is it possible the problem is case related? article.php should be Article.php or maybe use: $article = new App\article
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community