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