Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

dobstera's avatar

Fresh spark install: Trait 'Illuminate\Notifications\Notifiable' not found

Hello, I have a brand new installation of Laravel 5.3.18 + Spark 2.0.10 (verifiable with artisan, so installation should be OK). When I try to open the homepage of the installed project, I'm greeted by the following error in the spark User class:

FatalErrorException in User.php line 11:
Trait 'Illuminate\Notifications\Notifiable' not found

The library is in place, i checked. I can use PHPStorm to jump around the files with no issues. This is the problematic code:

namespace Laravel\Spark;

use Illuminate\Support\Str;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;

class User extends Authenticatable
{
    use Billable, HasApiTokens, Notifiable;

Any thoughts would be much appreciated. 10x

0 likes
3 replies
ahuggins's avatar

have you done a composer dump-autoload? Not necessarily the issue, but you didn't say you did it either, so first place to check.

dobstera's avatar

Yes I have. The issue is still present.

dobstera's avatar

Nevermind, I'm stupid. It was an apache vhost mixup. Misconfigured dirs. You can delete the topic.

Please or to participate in this conversation.