AdminLTE templates for Webcore
For https://github.com/dandisy/webcore, (*1)
This package based on https://github.com/InfyOmLabs/adminlte-templates, (*2)
Installation
composer require dandisy/adminlte-templates
php artisan vendor:publish --provider="Webcore\AdminLTETemplates\AdminLTETemplatesServiceProvider" --tag="public"
php artisan vendor:publish --provider="Webcore\AdminLTETemplates\AdminLTETemplatesServiceProvider" --tag="views"
or
php artisan vendor:publish --provider="Webcore\AdminLTETemplates\AdminLTETemplatesServiceProvider" --tag="views-all"
Usage (if this package is installed manually)
-
unzip adminlte-templates.zip to vendor/dandisy, (*3)
-
add autoload classmap in composer.json, (*4)
{
. . .
"autoload": {
"classmap": [
. . .
"vendor/dandisy"
],
. . .
- register this package in config/app.php
/*
* Package Service Providers...
*/
. . .
Webcore\AdminLTETemplates\AdminLTETemplatesServiceProvider::class,
- composer dump-autoload
-
publish the templates package to webcore project, (*5)
php artisan vendor:publish --provider="Webcore\AdminLTETemplates\AdminLTETemplatesServiceProvider" --force, (*6)
-
ubah configurasi templates di file config/webcore/laravel_generator.php ke elmer-templates, (*7)
/*
|--------------------------------------------------------------------------
| Templates
|--------------------------------------------------------------------------
|
*/
'templates' => 'adminlte-templates',