saqueib
230
1
Spark

add additional name field in laravel spark update member modal

Posted 1 year ago by saqueib

I want to add some extra fields in Spark model form when we click on edit a member. Out of the box currently, Spark gives only role dropdown, I have added name field in this, box but How can save updated name in DB.

I have checked the route and found

Laravel\Spark\Http\Controllers\Settings\Teams\[email protected]

Is handling the update method. This controller delegates updation and validation to this class

Laravel\Spark\Interactions\Settings\Teams\UpdateTeamMember

I want to use Spark::swap() but It's not working

Spark::swap('UpdateTeamMember', 'App\Swap\UpdateTeamMember');

Please help to solve it.

Please sign in or create an account to participate in this conversation.