Skip to content

Commit

Permalink
fix class and facade
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksandr-Moik committed Sep 14, 2021
1 parent 5ec142e commit 72dd8e7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "control access to models using groups and permissions",
"license": "MIT",
"type": "library",
"version": "1.0.0",
"version": "1.0.1",
"authors": [
{
"name": "Oleksandr-Moik",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use HexideDigital\ModelPermissions\PermissionRelation;
use HexideDigital\ModelPermissions\Classes\PermissionRelation;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;

Expand Down
4 changes: 2 additions & 2 deletions src/Classes/PermissionRelation.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct()
* @param string $table
* @return self
*/
public static function touch(string $table): self
public function touch(string $table): self
{
$ins = new self();
$ins->table = $table;
Expand All @@ -46,7 +46,7 @@ public static function touch(string $table): self
*
* @param array|string $permissions
*/
public static function createOnly($permissions): void
public function createOnly($permissions): void
{
if (!is_array($permissions)) {
$permissions = array($permissions);
Expand Down

0 comments on commit 72dd8e7

Please sign in to comment.