switch to auth()->user from session

This commit is contained in:
Andras Bacsai committed 2023-08-11 17:31:53 +02:00
1 parent e60ec6c47e
commit 833e45155d
32 files changed
+90 -77

No files matched your search

+1 -1
View File
@@ -41,7 +41,7 @@ class MagicController extends Controller
{
$project = Project::firstOrCreate(
['name' => request()->query('name') ?? generate_random_name()],
['team_id' => session('currentTeam')->id]
['team_id' => auth()->user()->currentTeam()->id]
);
return response()->json([
'project_uuid' => $project->uuid