This commit is contained in:
2025-09-25 03:03:31 +05:00
commit ae480cf2f6
2768 changed files with 1485826 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() {}
}