Artisan Tinker returning 'not found in eval()'d code
I'm trying to run $user = new App\User; like in the Eloquent 101 vide, but everytime I do that, I keep getting an error from tinker saying 'PHP Fatal error: Class 'App\User' not found in eval()'d code on line 1'
In my case I forgot to add 'extends Model' upon the manual creation of the Model Class.
I think it is always better to use:
php artisan make:model Modelname -m
on the command line
which creates the Model the correct way and the migration in the same line
i had the same problem but SOLVED!
u just have to check the problem i define class categories like class coments extends model so to problem was there
i suggest u use tinker help to find the problem easly