Laravel-Backpack / demo

A working demo of Laravel with all Backpack packages installed.
http://backpackforlaravel.com
Other
331 stars 165 forks source link

Use themes from packages #485

Closed tabacitu closed 1 year ago

tabacitu commented 1 year ago

WHY

BEFORE - What was wrong? What was happening before this PR?

Backpack v6 themes were used from branches on the CRUD repo. In order to switch between them you had to switch DEMO branches too.

AFTER - What is happening after this PR?

Backpack v6 are used from their own repos:

The only thing needed to switch between them is to change a variable in config/backpack/base.php:


    /*
    |--------------------------------------------------------------------------
    | Theme (User Interface)
    |--------------------------------------------------------------------------
    */
    // Change the view namespace in order to load a different theme than the one Backpack provides.
    // You can create child themes yourself, by creating a view folder anywhere in your resources/views
    // and choosing that view_namespace instead of the default one. Backpack will load a file from there
    // if it exists, otherwise it will load it from the default namespace ("backpack::").

    'view_namespace' => 'backpack.theme-coreuiv4::',

No more switching branches! One demo to rule them all!

gif-by-coolidge-corner-theatre

tabacitu commented 1 year ago

This PR is 99% ready. It completely replaces:

But in order to close those... we need to do one important thing...