From d7914e238d8a6c4db5eac92cf52ec2485b384536 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 19 Sep 2024 20:34:54 +0100 Subject: [PATCH] Added created by to company on save Signed-off-by: snipe --- app/Http/Controllers/CompaniesController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/CompaniesController.php b/app/Http/Controllers/CompaniesController.php index 589832af72..238ffc85f5 100644 --- a/app/Http/Controllers/CompaniesController.php +++ b/app/Http/Controllers/CompaniesController.php @@ -60,6 +60,7 @@ final class CompaniesController extends Controller $company->phone = $request->input('phone'); $company->fax = $request->input('fax'); $company->email = $request->input('email'); + $company->created_by = auth()->id(); $company = $request->handleImages($company);