catchAdmin/extend/catcher/command/stubs/permissionSeed.stub

25 lines
490 B
Plaintext
Raw Normal View History

2020-06-25 08:36:29 +08:00
<?php
use think\migration\Seeder;
class PermissionSeed extends Seeder
{
/**
* Run Method.
*
* Write your database seeder using this method.
*
* More information on writing seeders is available here:
* http://docs.phinx.org/en/latest/seeding.html
*/
public function run()
{
\catcher\Utils::importTreeData($this->getPermissions(), 'permissions', 'parent_id');
}
protected function getPermissions()
{
{DATA}
}
}