PHP code example of viralsoft / bptheme-stoke
1. Go to this page and download the library: Download viralsoft/bptheme-stoke library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
viralsoft / bptheme-stoke example snippets
bash
$ php artisan vendor:publish --provider="ViralSoft\BPThemeStoke\StokeServiceProvider"
bash
public function setup()
{
parent::setup();
CRUD::setModel(\App\Models\Category::class);
CRUD::setRoute(config('backpack.base.route_prefix') . '/category');
CRUD::setEntityNameStrings('category', 'categories');
}
config/backpack/base.php