Skip to content

Commit 72dd8e7

Browse files
fix class and facade
1 parent 5ec142e commit 72dd8e7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "control access to models using groups and permissions",
44
"license": "MIT",
55
"type": "library",
6-
"version": "1.0.0",
6+
"version": "1.0.1",
77
"authors": [
88
{
99
"name": "Oleksandr-Moik",

database/migrations/2020_05_28_120300_populate_permissions_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
use HexideDigital\ModelPermissions\PermissionRelation;
3+
use HexideDigital\ModelPermissions\Classes\PermissionRelation;
44
use Illuminate\Database\Migrations\Migration;
55
use Illuminate\Support\Facades\DB;
66

src/Classes/PermissionRelation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function __construct()
3434
* @param string $table
3535
* @return self
3636
*/
37-
public static function touch(string $table): self
37+
public function touch(string $table): self
3838
{
3939
$ins = new self();
4040
$ins->table = $table;
@@ -46,7 +46,7 @@ public static function touch(string $table): self
4646
*
4747
* @param array|string $permissions
4848
*/
49-
public static function createOnly($permissions): void
49+
public function createOnly($permissions): void
5050
{
5151
if (!is_array($permissions)) {
5252
$permissions = array($permissions);

0 commit comments

Comments
 (0)