mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-22 20:13:08 +00:00
Throw error when compiled.php exists
This commit is contained in:
@@ -52,6 +52,9 @@ class GeneratorCommand extends Command {
|
||||
*/
|
||||
public function fire()
|
||||
{
|
||||
if (file_exists($compiled = base_path().'/bootstrap/compiled.php')){
|
||||
$this->error('Error: first delete bootstrap/compiled.php (php artisan clear-compiled)');
|
||||
}else{
|
||||
$filename = $this->argument('filename');
|
||||
|
||||
if($this->option('memory')){
|
||||
@@ -79,7 +82,7 @@ class GeneratorCommand extends Command {
|
||||
}else{
|
||||
$this->error("The helper file could not be created at $filename");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
protected function useMemoryDriver(){
|
||||
|
||||
Reference in New Issue
Block a user