From b5b179a640dd5535687eff635b19f2d361444f46 Mon Sep 17 00:00:00 2001 From: Dedan Date: Fri, 12 Apr 2024 09:57:35 +0300 Subject: [PATCH] Add rights() method to Category, Product, Stock, and Type models --- Entities/Category.php | 10 ++++++++++ Entities/Product.php | 10 ++++++++++ Entities/Stock.php | 11 +++++++++++ Entities/Type.php | 10 ++++++++++ 4 files changed, 41 insertions(+) diff --git a/Entities/Category.php b/Entities/Category.php index 423202b..3590447 100755 --- a/Entities/Category.php +++ b/Entities/Category.php @@ -50,4 +50,14 @@ public function fields(Blueprint $table = null): void $this->fields->string('name')->nullable()->html('text'); $this->fields->integer('parent')->default(0)->html('text'); } + + /** + * Define rights for this model. + * + * @return array + */ + public function rights(): array + { + + } } diff --git a/Entities/Product.php b/Entities/Product.php index 116dc85..1a9c4c3 100755 --- a/Entities/Product.php +++ b/Entities/Product.php @@ -89,4 +89,14 @@ public function structure($structure): array return $structure; } + + /** + * Define rights for this model. + * + * @return array + */ + public function rights(): array + { + + } } diff --git a/Entities/Stock.php b/Entities/Stock.php index 60c293a..e0fced6 100755 --- a/Entities/Stock.php +++ b/Entities/Stock.php @@ -64,4 +64,15 @@ public function structure($structure): array return $structure; } + + + /** + * Define rights for this model. + * + * @return array + */ + public function rights(): array + { + + } } diff --git a/Entities/Type.php b/Entities/Type.php index 34aa150..5442909 100755 --- a/Entities/Type.php +++ b/Entities/Type.php @@ -49,4 +49,14 @@ public function fields(Blueprint $table = null): void $this->fields->string('name')->nullable()->html('text'); $this->fields->string('slug')->nullable(); } + + /** + * Define rights for this model. + * + * @return array + */ + public function rights(): array + { + + } }