Добавлен расширенный отчет по реализации
Добавлен монитор активности
This commit is contained in:
miroman-afk
2023-08-03 11:05:15 +03:00
parent 19ad7d1c8a
commit c4dc6e02a0
93 changed files with 13328 additions and 1122 deletions

View File

@@ -8,8 +8,8 @@ class StaffRights extends Model {
protected $table = 'staff_rights';
public static function add($code, $name) {
if (StaffRights::where('code', $code)->count() == 0) {
$staffRight = new StaffRights([
if (self::where('code', $code)->count() == 0) {
$staffRight = new self([
'code' => $code,
'name' => $name,
]);