Skip to content

Commit

Permalink
render profile through hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Sep 10, 2020
1 parent b2e5729 commit fd76d88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Http/Controllers/Inertia/UserProfileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Illuminate\Support\Facades\DB;
use Inertia\Inertia;
use Jenssegers\Agent\Agent;
use Laravel\Jetstream\Jetstream;

class UserProfileController extends Controller
{
Expand All @@ -19,7 +20,7 @@ class UserProfileController extends Controller
*/
public function show(Request $request)
{
return Inertia::render('Profile/Show', [
return Jetstream::inertia()->render($request, 'Profile/Show', [
'sessions' => $this->sessions($request)->all(),
]);
}
Expand Down

0 comments on commit fd76d88

Please sign in to comment.