This commit is contained in:
2026-02-03 15:31:29 +05:00
commit 326c677e8d
2800 changed files with 1489388 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
<?php
namespace App\Permissions\User;
use App\Models\User;
class UserProductPermissionChecker
{
/**
* Does have channel
*/
protected bool $hasChannel = false;
/**
* Users channel
*/
protected $channel;
/**
* Permission checker for user's products
*/
public function __construct(
protected User $user
) {
$this->checkIfHasChannel();
}
/**
* Check If Has Channel
*/
public function checkIfHasChannel(): bool
{
$this->channel = $this->user->channel();
return $this->channel ? true : false;
}
/**
* Get all user's products
*/
public function saveAllProductIds() {}
}