Skip to content

Commit

Permalink
Add rights() method to Category, Product, Stock, and Type models
Browse files Browse the repository at this point in the history
  • Loading branch information
dedanirungu committed Apr 12, 2024
1 parent f2ce5b7 commit b5b179a
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Entities/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{

}
}
10 changes: 10 additions & 0 deletions Entities/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,14 @@ public function structure($structure): array

return $structure;
}

/**
* Define rights for this model.
*
* @return array
*/
public function rights(): array
{

}
}
11 changes: 11 additions & 0 deletions Entities/Stock.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,15 @@ public function structure($structure): array

return $structure;
}


/**
* Define rights for this model.
*
* @return array
*/
public function rights(): array
{

}
}
10 changes: 10 additions & 0 deletions Entities/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{

}
}

0 comments on commit b5b179a

Please sign in to comment.