Skip to content

Commit dba01d5

Browse files
committed
add question at the end to ask if they want CSS and JS assets published too
1 parent afa4c9e commit dba01d5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/app/Console/Commands/Fix.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Backpack\CRUD\app\Console\Commands;
44

5+
use Artisan;
56
use Illuminate\Console\Command;
67

78
class Fix extends Command
@@ -28,6 +29,15 @@ class Fix extends Command
2829
public function handle()
2930
{
3031
$this->fixErrorViews();
32+
33+
if ($this->confirm('[SUGGESTION] Would you like to publish updated JS & CSS dependencies to public/packages?', false)) {
34+
Artisan::call('vendor:publish', [
35+
'--provider' => 'Backpack\CRUD\BackpackServiceProvider',
36+
'--tag' => 'assets',
37+
'--force' => 'true',
38+
]);
39+
$this->info('Published latest CSS and JS assets to your public/packages directory.');
40+
}
3141
}
3242

3343
private function fixErrorViews()

0 commit comments

Comments
 (0)