Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
Fixing CB Seeder & Minor Fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferry Ariawan committed Mar 25, 2021
1 parent fc06996 commit 3f16ce6
Show file tree
Hide file tree
Showing 7 changed files with 193 additions and 227 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"barryvdh/laravel-dompdf": "0.8.*",
"doctrine/dbal": "~2.3",
"maatwebsite/excel": "^3.1",
"intervention/imagecache":"^2.3"
"intervention/imagecache":"^2.3",
"laravel/framework": "^6.18|^7.28|^8.34"
},
"autoload": {
"psr-4": {
Expand Down
10 changes: 6 additions & 4 deletions src/CRUDBoosterServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,12 @@ public function register()

$this->registerSingleton();

$this->commands('crudboosterinstall');
$this->commands('crudboosterupdate');
$this->commands('crudboosterVersionCommand');
$this->commands('crudboosterMailQueue');
if($this->app->runningInConsole()) {
$this->commands('crudboosterinstall');
$this->commands('crudboosterupdate');
$this->commands('crudboosterVersionCommand');
$this->commands('crudboosterMailQueue');
}

$loader = AliasLoader::getInstance();
$loader->alias('PDF', 'Barryvdh\DomPDF\Facade');
Expand Down
3 changes: 2 additions & 1 deletion src/commands/CrudboosterInstallationCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,12 @@ public function handle()
$process->setWorkingDirectory(base_path())->run();

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

if (! class_exists('CBSeeder')) {
require_once __DIR__.'/../database/seeds/CBSeeder.php';
}

$this->call('migrate');
$this->call('db:seed', ['--class' => 'CBSeeder']);
$this->call('config:clear');
if (app()->version() < 5.6) {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/CrudboosterVersionCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class CrudboosterVersionCommand extends Command
* @return mixed
*/

public static $version = "5.5.0";
public static $version = "5.5.7";

public function handle()
{
Expand Down
Loading

0 comments on commit 3f16ce6

Please sign in to comment.