Skip to content

Commit

Permalink
Merge pull request #5607 from Laravel-Backpack/fix-save-to-mobile-fol…
Browse files Browse the repository at this point in the history
…der-path

Fix mobile icons - folder path
  • Loading branch information
pxpm authored Aug 14, 2024
2 parents 17bb099 + 1c8acf5 commit abf351e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/Console/Commands/PublishHeaderMetas.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function handle()
$appColor = $this->ask('What is the application color ?', '#161c2d');
$pathPrefix = $this->ask('Where should icon files be published relative to public folder?');

$pathPrefix = Str::finish($pathPrefix ?? '', '/');
$pathPrefix = Str::start(Str::finish($pathPrefix ?? '', '/'), '/');

// laravel adds a dummy favicon with 0 bytes. we need to remove it otherwise our script would skip publishing the favicon on new Laravel installations.
// we will check the favicon file size, to make sure it's not a "valid" favicon. we will only delete the favicon if it has 0 bytes in size.
Expand Down

0 comments on commit abf351e

Please # to comment.