Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
40 | protected function getConfigFilePath($name) |
||
41 | { |
||
42 | $modelPath = config_path(config('admin.model_config_dir')); |
||
43 | if (!is_dir($modelPath)) { |
||
44 | throw new \InvalidArgumentException('not found admin model config dir'); |
||
45 | } |
||
46 | $file = str_replace('.', DIRECTORY_SEPARATOR, $name) . '.php'; |
||
47 | return $modelPath . DIRECTORY_SEPARATOR . $file; |
||
48 | } |
||
49 | } |