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

geerizzle's avatar

Best practice for editing Spark src files?

For example I want to disable gravatars which I could do under vendor/laravel/spark-aurelius/src/user.php.

Presumably if I edited that then when Spark is updated it would be overwritten. How might I avoid that?

Similarly, with templates, I note under /vendor/laravel/spark-aurelius/resources/views what looks to be the same templates as in /resources/vendor/spark.

Obviously I am editing the latter ones. But what are the other ones for? Just for copying during installation?

0 likes
2 replies
Cronix's avatar
Cronix
Best Answer
Level 67

Yes spark copies all views to /resources/views/vendor/spark so you can edit them.

If you look at /app/User, you'll see it extends the spark user. Customize that one. You can override any methods (or traits) that the original has in it too.

1 like

Please or to participate in this conversation.