Skip to content

Commit 0abb807

Browse files
authored
Pass additional props to the teams create view. (#1149)
Allows additional data to be passed in as props to the front end. My use case would be to have different options for the groups that are being created which is dependent on what subscription plan they are on or something similar. Thanks!
1 parent 68b9c9a commit 0abb807

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Http/Controllers/Inertia/TeamController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function create(Request $request)
5454
{
5555
Gate::authorize('create', Jetstream::newTeamModel());
5656

57-
return Inertia::render('Teams/Create');
57+
return Jetstream::inertia()->render($request, 'Teams/Create');
5858
}
5959

6060
/**

0 commit comments

Comments
 (0)