Skip to content
This repository was archived by the owner on Feb 9, 2025. It is now read-only.

Commit 3f16ce6

Browse files
author
Ferry Ariawan
committed
Fixing CB Seeder & Minor Fixing
1 parent fc06996 commit 3f16ce6

File tree

7 files changed

+193
-227
lines changed

7 files changed

+193
-227
lines changed

composer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"barryvdh/laravel-dompdf": "0.8.*",
2525
"doctrine/dbal": "~2.3",
2626
"maatwebsite/excel": "^3.1",
27-
"intervention/imagecache":"^2.3"
27+
"intervention/imagecache":"^2.3",
28+
"laravel/framework": "^6.18|^7.28|^8.34"
2829
},
2930
"autoload": {
3031
"psr-4": {

src/CRUDBoosterServiceProvider.php

+6-4
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,12 @@ public function register()
5050

5151
$this->registerSingleton();
5252

53-
$this->commands('crudboosterinstall');
54-
$this->commands('crudboosterupdate');
55-
$this->commands('crudboosterVersionCommand');
56-
$this->commands('crudboosterMailQueue');
53+
if($this->app->runningInConsole()) {
54+
$this->commands('crudboosterinstall');
55+
$this->commands('crudboosterupdate');
56+
$this->commands('crudboosterVersionCommand');
57+
$this->commands('crudboosterMailQueue');
58+
}
5759

5860
$loader = AliasLoader::getInstance();
5961
$loader->alias('PDF', 'Barryvdh\DomPDF\Facade');

src/commands/CrudboosterInstallationCommand.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,12 @@ public function handle()
5757
$process->setWorkingDirectory(base_path())->run();
5858

5959
$this->info('Migrating database...');
60-
$this->call('migrate');
6160

6261
if (! class_exists('CBSeeder')) {
6362
require_once __DIR__.'/../database/seeds/CBSeeder.php';
6463
}
64+
65+
$this->call('migrate');
6566
$this->call('db:seed', ['--class' => 'CBSeeder']);
6667
$this->call('config:clear');
6768
if (app()->version() < 5.6) {

src/commands/CrudboosterVersionCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class CrudboosterVersionCommand extends Command
2525
* @return mixed
2626
*/
2727

28-
public static $version = "5.5.0";
28+
public static $version = "5.5.7";
2929

3030
public function handle()
3131
{

0 commit comments

Comments
 (0)