I am using laravel 5.4 i got and error that
FatalThrowableError in HasRelationships.php line 487: Class 'User' not found
In my model i am using the following code
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Auth;
use App\User;
class Review extends Model
{
public function user()
{
return $this->belongsTo('User');
}
}
Could any one help me fix this error