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

brandenwagner's avatar

Spark Contact Information

I see that spark by default already creates a column for phone, but I don't see anywhere where the user would ever input it.

I NEED phone, but I can't find where that's referenced. I realize I could just extend and write my own.

I've successfully added new fields for profile information, but I was hoping to tie into the contact information the right way.

Any direction?

0 likes
2 replies
devstevehowe's avatar

We needed to add shipping information, what you do is add the required field to your blade, and then in SparkServiceProvider in the boot() function add Spark::createUserWith(function ($request) { $user = Spark::user();

$data->request->all();

$user->forceFill([ 'phone' => $data['phone'] ])->save(); return $user; });

Please or to participate in this conversation.