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

25 lines
483 B
Plaintext
Raw Normal View History

2020-06-25 08:36:29 +08:00
<?php
use think\migration\Seeder;
2020-09-05 17:18:31 +08:00
class {CLASS} extends Seeder
2020-06-25 08:36:29 +08:00
{
/**
* 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}
}
}