You don't need a license code AT ALL. Go ahead and install Backpack CRUD on your machine - it's free and open-source, released under the MIT License.
You only need to pay if you want the extra features provided by our premium add-ons (e.g. Backpack PRO and Backpack DevTools). That's it.
No:
Yes you can! Use Backpack CRUD v6, which is free and open-source, released under the MIT License.
In short - no, you cannot. Please use Backpack CRUD v6 instead, which is free and open-source, released under the MIT License.
Backpack PRO is a closed-source add-on, which requires payment in order to receive an access token. If you did include backpack/pro
as a dependency in your open-source software, then your software would no longer be open-source. Everybody who installed your project/package would need to pay for Backpack PRO to get access to it.
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.
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.
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.
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.
You can remove Backpack from your project pretty easily, if you decide to stop using it. You just have to do the opposite of the installation process:
# delete the files Backpack has placed inside your application
rm -rf app/Http/Middleware/CheckIfAdmin.php
rm -rf config/backpack
rm -rf config/gravatar.php
rm -rf resources/views/vendor/backpack
rm -rf routes/backpack
# delete any CrudControllers you've created, so MAYBE:
rm -rf app/Http/Controllers/Admin
# delete any Requests you've created for your CrudControllers.
# MAKE SURE YOU DON'T NEED ANYTHING IN THIS DIRECTORY ANYMORE.
# You might have OTHER requests that are not Backpack-related.
rm -rf app/Http/Requests
# (MUST) remove other Backpack packages that you are using, like PRO, Editable Columns, DevTools etc:
composer remove --dev backpack/devtools
composer remove backpack/pro
composer remove backpack/editable-columns
etc...
# After everything related to Backpack is deleted, just need to delete the crud!
composer remove backpack/crud
That's it! If you've decided NOT to use Backpack, we'd be super grateful if you could send us an email telling us WHY you decided not to use Backpack, or why it didn't fit your project. It might help us take Backpack in a different direction, a direction where you might want to use it again. Thank you 🙏
When installing our paid add-ons:
repo.backpackforlaravel.com
) to your composer.json
file;dist
version of the package from there;
dist
version fails to download, Composer will throw an error (with an HTTP code like 402); then Composer will try to download the source
version of the package straight from our Github repo; that will 100% fail, because you do NOT have access to our private Github repo; to rephrase, you don't have access to the source
, only to the dist
version;Unfortunately, we cannot customize the errors that Composer throws, so the error text might be confusing. Please take a look at the HTTP error code shown in the error to understand what happened:
If you still can't figure it out, please open a new discussion in our Community Forum. Please make sure to:
composer require backpack/pro
, php artisan backpack:require:pro
etc.);Deploying a Laravel+Backpack project to production isn't very different from deploying a normal Laravel project to production. You only need to account for Basset, the system in Backpack that publishes the CSS and JS assets your admin panel needs.
That being said, here's a detailed step-by-step guide to deploying a Backpack project to production, that should work for most production servers:
Local Preparations Before deploying your application, make sure your development environment is in order:
composer install --no-dev --optimize-autoloader
npm install && npm run prod
Configure the Production Server Ensure your production server meets the following requirements:
Web Server: Nginx or Apache. PHP: Version compatible with your Laravel version. Database: MySQL, PostgreSQL, etc. Composer: Installed globally. Node.js and npm: If you are using asset compilation with Laravel Mix.
Deploy the Code There are several ways to deploy code to production, here’s one method using Git:
git clone https://github.com/your_user/your_repository.git
cd your_repository
APP_ENV=production
APP_URL=https://MY_DOMAIN.COM #This need to be correctly set for Basset
Install Dependencies Install Composer and npm dependencies:
composer install --no-dev --optimize-autoloader
npm install && npm run prod
Configure the Application Make the necessary configurations for the application:
php artisan key:generate
sudo chown -R www-data:www-data storage
sudo chown -R www-data:www-data bootstrap/cache
sudo chmod -R 775 storage
sudo chmod -R 775 bootstrap/cache
php artisan migrate --force
php artisan basset:clear
php artisan basset:cache
php artisan optimize:clear
php artisan optimize
Configure the Web Server Set up your web server (Nginx or Apache) to point to the public directory of your Laravel application. Here’s an example Nginx configuration:
server {
listen 80;
server_name your_domain.com;
root /path/to/your/project/public;
index index.php index.html;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ /\.ht {
deny all;
}
}
Configure Cron Jobs If your Laravel application uses scheduled tasks, add the following line to your crontab:
* * * * * cd /path/to/your/project && php artisan schedule:run >> /dev/null 2>&1
Monitor and Maintain Monitor your application in production:
Optimize for Production Perform additional optimizations if necessary:
composer dump-autoload --optimize
APP_DEBUG=false
php artisan config:clear
php artisan config:cache
Then you'll love our premium add-ons - productivity tools and tons of new features.