Completed
Push — develop ( d15310...a763d0 )
by Abdelrahman
11:20 queued 09:46
created

CortexTenantsSeeder::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 8
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
use Illuminate\Database\Seeder;
6
7
class CortexTenantsSeeder extends Seeder
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
8
{
9
    /**
10
     * Run the database seeds.
11
     *
12
     * @return void
13
     */
14
    public function run()
15
    {
16
        Bouncer::allow('admin')->to('access-managerarea');
17
        Bouncer::allow('manager')->to('access-managerarea');
18
19
        Bouncer::allow('admin')->to('list', config('rinvex.tenants.models.tenant'));
20
        Bouncer::allow('admin')->to('create', config('rinvex.tenants.models.tenant'));
21
        Bouncer::allow('admin')->to('update', config('rinvex.tenants.models.tenant'));
22
        Bouncer::allow('admin')->to('delete', config('rinvex.tenants.models.tenant'));
23
        Bouncer::allow('admin')->to('audit', config('rinvex.tenants.models.tenant'));
24
    }
25
}
26