Commit 04bdf6f3 authored by hj's avatar hj

更新

parent eceeeb80
...@@ -34,7 +34,7 @@ class RepositoryServiceProvider extends LumenRepositoryServiceProvider ...@@ -34,7 +34,7 @@ class RepositoryServiceProvider extends LumenRepositoryServiceProvider
collect($files)->map(function ($file) use ($path){ collect($files)->map(function ($file) use ($path){
$filePath = $file->getRelativePathname(); $filePath = $file->getRelativePathname();
$class = str_replace('/', '\\', $path).'\\'; $class = str_replace('/', '\\', $path).'\\';
if(!Str::contains($filePath, 'app')){ if(!Str::contains($path, 'app')){
$class = 'app\\'.$class; $class = 'app\\'.$class;
} }
$class = ucfirst($class); $class = ucfirst($class);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment