ClementN
1 month ago
411
1
General

[Jetstream][Teams] Customizing TeamController

Posted 1 month ago by ClementN

Hello,

Can anyone suggest a way to customize the Laravel\Jetstream\Http\Controllers\Livewire\[email protected] ?

Basically, I need to change $team = Jetstream::newTeamModel()->findOrFail($teamId); so it will get the team based on a slug field.

In my case that line should be: $team = Jetstream::newTeamModel()->where('slug', $teamId)->firstOrFail();

Thank you,

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