mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
New permissions code (#9986)
* Initial permissions * initial tests * updates * finish tests, other tweaks * update legacy permissions checks remove global :D * missed facade extend * Update eloquent permissions to use the new facade and drop joins * method descriptions * more docs * fix style
This commit is contained in:
@@ -40,6 +40,12 @@ $factory->state(App\Models\User::class, 'read', function ($faker) {
|
||||
];
|
||||
});
|
||||
|
||||
$factory->define(\App\Models\Bill::class, function (Faker\Generator $faker) {
|
||||
return [
|
||||
'bill_name' => $faker->text
|
||||
];
|
||||
});
|
||||
|
||||
$factory->define(\App\Models\Device::class, function (Faker\Generator $faker) {
|
||||
return [
|
||||
'hostname' => $faker->domainWord.'.'.$faker->domainName,
|
||||
|
Reference in New Issue
Block a user