改名
This commit is contained in:
@@ -62,7 +62,7 @@ class ' . $managerName . 'Middleware implements Middleware
|
||||
|
||||
$file = APP_PATH . 'app/Http/Middleware/' . $managerName . 'Middleware.php';
|
||||
if (file_exists($file)) {
|
||||
unlink($file);
|
||||
throw new Exception('File exists.');
|
||||
}
|
||||
|
||||
Snowflake::writeFile($file, $html);
|
||||
|
||||
Reference in New Issue
Block a user