Hi ,
I code works fine when i run it in homestead box , where as it shows following error when i ran it into my ubuntu server
exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Class 'Illuminate\Foundation\Auth\User' not found' in /home/laravel/app/User.php:8
This is my User.php <?php
namespace App;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'email', 'password',
];
.......
Any idea how to resolve?
composer dump
artisan optimize
Why it can't find that class is odd, but it could be a composer issue, so have it dump the autoload out again.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community