refactor: replace custom CRM with Monica fork
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
This commit is contained in:
26
app/Traits/WithUser.php
Normal file
26
app/Traits/WithUser.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Traits;
|
||||
|
||||
use App\Models\User\User;
|
||||
|
||||
trait WithUser
|
||||
{
|
||||
/**
|
||||
* @var \App\Models\User\User
|
||||
*/
|
||||
protected $user;
|
||||
|
||||
/**
|
||||
* Initialize.
|
||||
*
|
||||
* @param User $user
|
||||
* @return self
|
||||
*/
|
||||
public function init(User $user): self
|
||||
{
|
||||
$this->user = $user;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user