@@ 94-102 (lines=9) @@ | ||
91 | * |
|
92 | * @return $this |
|
93 | */ |
|
94 | public function setUpdatedBy() |
|
95 | { |
|
96 | $userService = app()->make(AuthUserService::class); |
|
97 | if ($userService->check()) { |
|
98 | $this->{static::UPDATED_BY} = $userService->user()->id; |
|
99 | } |
|
100 | ||
101 | return $this; |
|
102 | } |
|
103 | ||
104 | /** |
|
105 | * Set the value of the "created by" attribute. |
|
@@ 109-117 (lines=9) @@ | ||
106 | * |
|
107 | * @return $this |
|
108 | */ |
|
109 | public function setCreatedBy() |
|
110 | { |
|
111 | $userService = app()->make(AuthUserService::class); |
|
112 | if ($userService->check()) { |
|
113 | $this->{static::CREATED_BY} = $userService->user()->id; |
|
114 | } |
|
115 | ||
116 | return $this; |
|
117 | } |
|
118 | ||
119 | } |
|
120 |