Skip to content

ViralS-longnd/stoke

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#Backpack Theme Stoke Change Theme backpack to them stoke (https://themesbrand.com/skote/layouts/ui-notifications.html) ##Installation Via Composer

$ composer require themebackpack/stoke

Usage

Optional you can publish the configuration to provide a different service provider stub. The default is here.

$ php artisan vendor:publish --provider="ThemeBackpack\Stoke\StokeServiceProvider"

You can edit your CRUD controller extend BaseCrudController be like:

use ThemeBackpack\Stoke\app\Http\Controllers\BaseCrudController;

class CategoryCrudController extends BaseCrudController

and in function setup you need add:

    public function setup()
    {
        parent::setup();
        CRUD::setModel(\App\Models\Category::class);
        CRUD::setRoute(config('backpack.base.route_prefix') . '/category');
        CRUD::setEntityNameStrings('category', 'categories');
    }

in config/backpack/base.php you need edit 'view_namespace' => 'stoke-horizontal::' or 'view_namespace' => 'stoke-vertical::' to use theme Reload page and theme setting successfully

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published