Skip to content
Projekte

Über uns

Eine lauffähige Laravel-Demo mit allen installierten Backpack-Paketen.

Web- und App-Entwicklung

So werden diese Zahlen gemessen

Gemessener Sternzuwachs

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Verlauf wird gesammelt

Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.

README.md

Original




Website | Documentation | Add-ons | Pricing | Services | Stack Overflow | Reddit | Blog | Newsletter

Backpack\Demo

Laravel BackPack's demo, which includes all Backpack packages.

Security updates and breaking changes

Please subscribe to the Backpack Newsletter so you can find out about any security updates, breaking changes or major features. We send an email every 1-2 months.

image

How to Use

You can find the demo online at demo.backpackforlaravel.com, and play around. But some functionality is disabled, for security reasons (uploads, edits to users). If you want to run the demo without restrictions and/or make code edits and see how they're applied, you can install it on your own machine. See below.

Install

IMPORTANT. This demo requires ALL our premium packages. If you do not have access to one of them, you will not be able to install it. To install this demo yourself, make sure you've purchased all our premium add-ons individually, or our GOLD bundle - https://backpackforlaravel.com/pricing

  1. Run in your terminal:
git clone https://github.com/Laravel-Backpack/demo.git backpack-demo
  1. Set your database information in your .env file (use the .env.example as an example);

  2. Make sure the APP_URL in your .env file is correctly pointing to the URL you use to access your application in the browser, for example: http:127.0.0.1:8000 or http://something.test

  3. Run in your backpack-demo folder:

composer install
php artisan key:generate
php artisan migrate
php artisan db:seed

Usage

  1. Your admin panel is available at http://localhost/backpack-demo/admin
  2. Login with email [email protected], password admin
  3. [optional] You can register a different account, to check out the process and see your gravatar inside the admin panel.
  4. By default, registration is open only in your local environment. Check out config/backpack/base.php to change this and other preferences.

Note: Depending on your configuration you may need to define a site within NGINX or Apache; Your URL domain may change from localhost to what you have defined.

Example generated CRUD interface

How the demo is organized

The menu has five entries. Greyed-out items marked soon are pages we still have to build.

  • Dashboard - a realistic Pet Shop dashboard (resources/views/admin/dashboard.blade.php, numbers from App\View\Composers\DashboardComposer).
  • Core Features - one page per Backpack feature: UI (Widgets, Themes, Skins, Alerts, Components, Design) and CRUD operations. The CRUD operations link to live CRUD pages with ?explainer=<key>, which shows an explainer card at the top; the texts live in config/demo.php.
  • Free Add-ons - every free package, each with its live page.
  • Paid Add-ons - every paid package. Those with a live example in the demo link straight to it, with an explainer card on top; the others get a page at /admin/paid/<key> (content in config/demo.php, under paid_addons).
  • Examples - Pet Shop (a small realistic app) and Crazy Stuff (every field, column, filter and button in one place). This is where Backpack maintainers check that nothing broke.

The Customize button (bottom-right, on the login page too) opens a drawer where visitors pick a skin, a layout and the text direction. Choices are kept in a cookie, so they survive logging out, and are applied by App\Http\Middleware\Theme; the options live in config/demo.php. Add ?open_drawer=true to any URL to open the drawer on page load (the website links to the demo this way). Legacy CoreUI themes are behind a collapsed section, for maintainers only.

Local-only helper routes (not available in production):

  • /dev/login-as/{email?} - log in without a password (defaults to [email protected])
  • /dev/preview/{skin}/{layout?} - log in with a given skin and layout, handy for screenshots

If using docker

docker-compose.yml runs the demo with PHP 8.4 + NGINX (serversideup/php), MariaDB and Mailpit. The project folder is mounted into the container, so code changes show up immediately.

First time:

bash install.sh

It creates .env from .env.docker.example if there is none, builds the image, generates the app key and starts everything. On its first start the container runs composer install (when vendor/ is missing), migrates and seeds the demo data. The Backpack add-ons need your credentials for that: put an auth.json in the project root, or set COMPOSER_AUTH in .env.

Then:

Day to day: docker compose up -d and docker compose down. After changing the Dockerfile: bash reload.sh. To reset the demo data: docker compose exec php php artisan migrate:fresh --seed --force. Ports can be changed in .env (APP_PORT, APP_SSL_PORT, FORWARD_DB_PORT, FORWARD_MAILPIT_PORT).

The container sets its own database, mail and URL settings, so the same checkout keeps working with a local stack (Laragon, Herd, Valet) and its .env.

On Windows, keep the project inside WSL (for example ~/code/demo in Ubuntu) rather than on the C: drive: through the C: drive every page takes several seconds.

Change log

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Please subscribe to the Backpack Newsletter so you can find out about any security updates, breaking changes or major features. We send an email every 1-2 months.

Credits

License

Backpack is free for non-commercial use and 69 EUR/project for commercial use. Please see License File and backpackforlaravel.com for more information.

Hire us

We've spend more than 10.000 hours creating, polishing and maintaining administration panels on Laravel. We've developed e-Commerce, e-Learning, ERPs, social networks, payment gateways and much more. We've worked on admin panels so much, that we've created one of the most popular software in its niche - just from making public what was repetitive in our projects.

If you are looking for a developer/team to help you build an admin panel on Laravel, look no further. You'll have a difficult time finding someone with more experience & enthusiasm for this. This is what we do. Contact us - let's see if we can work together.

Ähnliche Projekte entdecken

Wird geladen…