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

codercotton's avatar

Set notification title

Hello,

The notification titles are all just "Spark" - can I customize these? The docs don't mention a title attribute...

https://spark.laravel.com/docs/1.0/notifications

0 likes
3 replies
cjsoutham's avatar

I've wondered the same, yet to go through the codebase to figure it out.

Some of the areas I'd expect to see within the ENV file (like this one) aren't there.

denny's avatar

You can customize it globally in app/SparkServiceProvider.php:

protected $details = [
    'vendor' => '',
    'product' => 'Product name here',
    'street' => '',
    'location' => '',
    'phone' => '',
];

Pretty useless, though, if you ask me. Would definitely be better if we could set a title for each notification.

Please or to participate in this conversation.