Permalink
Browse files

[edit]show skip message instead of error message when delete scaffold

  • Loading branch information...
dog-ears committed Jun 5, 2016
1 parent a56f2e9 commit 9ef7889b23bd90b1ce45a8c09463c769294fedda
Showing with 12 additions and 3 deletions.
  1. +12 −3 src/Makes/DeleteAll.php
View
@@ -36,9 +36,18 @@ private function start()
//app_model_class
$this->app_model_class = $this->solveName($this->commandObj->argument('name'),config('CrudDscaffold.app_name_rules.app_model_class'));
$this->deleteFactory();
$this->deleteDatabaseSeeder();
$this->deleteSeed();
//check seeding file exist
$output_path = './database/seeds/';
$output_filename = $this->solveName($this->commandObj->argument('name'), config('CrudDscaffold.app_name_rules.app_seeder_class')).'TableSeeder.php';
if( $this->files->exists( $output_path. $output_filename ) ){
$this->deleteFactory();
$this->deleteDatabaseSeeder();
$this->deleteSeed();
}else{
$this->commandObj->info('no seeding file.');
}
$this->deleteModel();
$this->deleteController();
$this->deleteViews();

0 comments on commit 9ef7889

Please sign in to comment.