Skip to content

Commit

Permalink
added facade
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksandr-Moik committed Sep 14, 2021
1 parent 12fa6ee commit 5ec142e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
"extra": {
"laravel": {
"providers": [
"HexideDigital\\FileUploader\\FileUploaderServiceProvider"
"HexideDigital\\ModelPermissions\\ModelPermissionsServiceProvider"
],
"aliases": {
"FileUploader": "HexideDigital\\FileUploader\\Facades\\FileUploader"
"PermissionRelation": "HexideDigital\\ModelPermissions\\Facades\\PermissionRelation"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php


namespace HexideDigital\ModelPermissions;
namespace HexideDigital\ModelPermissions\Classes;


use Exception;
Expand Down
13 changes: 13 additions & 0 deletions src/Facades/PermissionRelation.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

namespace HexideDigital\ModelPermissions\Facades;

use Illuminate\Support\Facades\Facade;

class PermissionRelation extends Facade
{
protected static function getFacadeAccessor()
{
return 'permission_relation';
}
}
3 changes: 2 additions & 1 deletion src/ModelPermissionsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace HexideDigital\ModelPermissions;

use HexideDigital\ModelPermissions\Classes\PermissionRelation;
use Illuminate\Support\ServiceProvider;

class ModelPermissionsServiceProvider extends ServiceProvider
Expand Down Expand Up @@ -31,7 +32,7 @@ public function boot(){
*/
public function register()
{
//
$this->app->bind('permission_relation', PermissionRelation::class);
}

}

0 comments on commit 5ec142e

Please sign in to comment.