Skip to content

Commit

Permalink
changes in config
Browse files Browse the repository at this point in the history
  • Loading branch information
riteshjha committed Jul 24, 2020
1 parent b313f9d commit 6ad2848
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,9 @@ protected function getPackageAliases($app)

protected function getEnvironmentSetUp($app)
{
$app['config']->set('permission', [
'level' => env('PERMISSION_LEVEL', 'owner'),
'disableAbilityGroup' => env('PERMISSION_DISABLE_ABILITY_GROUP', false),
'model' => [
'namespace' => env('PERMISSION_MODEL_NAMESPACE','App'),
'user' => env('PERMISSION_MODEL_USER','User'),
'role' => env('PERMISSION_MODEL_ROLE','Role'),
'ability' => env('PERMISSION_MODEL_ABILITY', 'Rkj\Permission\Models\Ability'),
'account' => env('PERMISSION_MODEL_ACCOUNT','Account'),
],
'role' => [
'superAdmin' => env('PERMISSION_ROLE_SUPPERADMIN','superadmin'),
],
'adminPrefix' => env('PERMISSION_ADMIN_ROUTE_PREFIX','admin'),
'itemPerPage' => env('PERMISSION_ITEM_PERPAGE',15),
]);
$permission = require __DIR__ . '/../config/permission.php';

$app['config']->set('permission', $permission);
}


Expand Down

0 comments on commit 6ad2848

Please sign in to comment.