mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-08 23:24:07 -06:00
35 lines
708 B
PHP
35 lines
708 B
PHP
<?php
|
|
/**
|
|
* PermissionSeeder.php
|
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
|
*
|
|
* This software may be modified and distributed under the terms of the
|
|
* Creative Commons Attribution-ShareAlike 4.0 International License.
|
|
*
|
|
* See the LICENSE file for details.
|
|
*/
|
|
|
|
declare(strict_types = 1);
|
|
|
|
|
|
|
|
use FireflyIII\Models\Role;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
/**
|
|
* Class PermissionSeeder
|
|
*/
|
|
class PermissionSeeder extends Seeder
|
|
{
|
|
public function run()
|
|
{
|
|
$owner = new Role;
|
|
$owner->name = 'owner';
|
|
$owner->display_name = 'Site Owner';
|
|
$owner->description = 'User runs this instance of FF3'; // optional
|
|
$owner->save();
|
|
|
|
}
|
|
|
|
}
|