Skip to content

Commit 3f7538a

Browse files
authored
Merge pull request #587 from Laravel-Backpack/remove-publish-commands-from-our-docs
update faq - remove publish commands from docs
2 parents 5109480 + 852709e commit 3f7538a

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

6.x/faq.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Backpack PRO is a closed-source add-on, which requires payment in order to recei
3939
<a name="backpack-pro-for-non-commercial-projects"></a>
4040
### Can I get Backpack PRO for free to use in a non-commercial project?
4141

42-
No - we're no longer giving away free licenses. But we _have_ released Backpack CRUD v5 and v6 under the MIT License, which means it's free and open-source. It has fewer features, but you can do absolutely anything you want with it.
42+
No - we're no longer giving away free licenses. But we _have_ released Backpack CRUD v5 and v6 under the MIT License, which means it's free and open-source. It has fewer features, but you can do absolutely do anything you want with it.
4343

4444
<a name="Installation"></a>
4545
## Installation
@@ -48,17 +48,11 @@ No - we're no longer giving away free licenses. But we _have_ released Backpack
4848
<a name="how-do-i-update-backpack"></a>
4949
### How do I update Backpack to the latest non-breaking version?
5050

51-
First of all, **run `composer update` on your project**. That will pull in the latest supported version of all your Backpack packages.
51+
Run **`composer update`** on your project to update the dependencies given your version constrains in `composer.json`. If you want to update a specific package, you can run **`composer update backpack/crud`** for example to only update `backpack/crud` and it's dependencies.
5252

53-
Then you should **re-publish the JS and CSS assets**. There are two ways to do that:
54-
55-
(A) Run `php artisan vendor:publish --provider="Backpack\CRUD\BackpackServiceProvider" --tag=public --force`. Please note this will overwrite anything that's already there. This B solution has a downside: _unused files are not removed_. A few files Backpack no longer uses will still be in your public/packages folder, even though they're no longer used.
56-
57-
(B) If you have NOT touched you `public/packages` folder, or placed anything custom inside it:
58-
- delete the public/packages directory and all its contents;
59-
- run `php artisan vendor:publish --provider="Backpack\CRUD\BackpackServiceProvider" --tag=public`
60-
- if you use elFinder, also delete `resources/views/vendor/elfinder` and run `php artisan backpack:filemanager:install`
53+
If you have your assets cached you can run `php artisan basset:clear` to clear the cache too. You can manually rebuild the asset cache if necessary with `php artisan basset:cache`. We do recommend you keep basset disabled on localhost while developing.
6154

55+
Some packages may require you to run additional commands to update the database schema or publish new assets. Please refer to the package documentation or upgrade guide for more information.
6256

6357
<a name="how-do-i-uninstall-backpack"></a>
6458
### How do I uninstall Backpack from my project?
@@ -70,8 +64,6 @@ You can remove Backpack from your project pretty easily, if you decide to stop u
7064
rm -rf app/Http/Middleware/CheckIfAdmin.php
7165
rm -rf config/backpack
7266
rm -rf config/gravatar.php
73-
rm -rf public/packages
74-
rm -rf resources/views/errors
7567
rm -rf resources/views/vendor/backpack
7668
rm -rf routes/backpack
7769

0 commit comments

Comments
 (0)