Support the ongoing development of Laravel.io →
posted 9 years ago
Testing
Last updated 1 year ago.
0
Solution

try

new App\User;
Last updated 1 year ago.
0

thanks! it work!

Last updated 1 year ago.
0

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.

0

Is it possible the problem is case related? article.php should be Article.php or maybe use: $article = new App\article

0

Sign in to participate in this thread!

Eventy

Your banner here too?

dbwhddn10 dbwhddn10 Joined 25 Aug 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.