新增seedPath创建方法
This commit is contained in:
parent
d2bc7a25c0
commit
cfaec3fbc3
10
catch/permissions/database/seeds/RolesSeed.php
Normal file
10
catch/permissions/database/seeds/RolesSeed.php
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
// | CatchAdmin [Just Like ~ ]
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
// | Copyright (c) 2017~2020 http://catchadmin.com All rights reserved.
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
// | Licensed ( https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt )
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
// | Author: JaguarJack [ njphper@gmail.com ]
|
||||||
|
// +----------------------------------------------------------------------
|
@ -84,7 +84,11 @@ class CatchAdmin
|
|||||||
*/
|
*/
|
||||||
public static function moduleSeedsDirectory($module): string
|
public static function moduleSeedsDirectory($module): string
|
||||||
{
|
{
|
||||||
return self::directory() . $module . DIRECTORY_SEPARATOR . 'database' . DIRECTORY_SEPARATOR. 'seeds' . DIRECTORY_SEPARATOR;
|
$seedPath = self::directory() . $module . DIRECTORY_SEPARATOR . 'database' . DIRECTORY_SEPARATOR. 'seeds' . DIRECTORY_SEPARATOR;
|
||||||
|
|
||||||
|
self::makeDirectory($seedPath);
|
||||||
|
|
||||||
|
return $seedPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
0
extend/catcher/command/stubs/permissionSeed.stub
Normal file
0
extend/catcher/command/stubs/permissionSeed.stub
Normal file
Loading…
x
Reference in New Issue
Block a user