File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 22
33namespace Backpack \CRUD \app \Console \Commands ;
44
5+ use Artisan ;
56use Illuminate \Console \Command ;
67
78class Fix extends Command
@@ -18,7 +19,7 @@ class Fix extends Command
1819 *
1920 * @var string
2021 */
21- protected $ description = 'Fix known Backpack security issues. ' ;
22+ protected $ description = 'Fix known Backpack issues. ' ;
2223
2324 /**
2425 * Execute the console 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 ()
You can’t perform that action at this time.
0 commit comments