/
home
/
techb158
/
immovalet.com
/
vendor
/
botble
/
widget-generator
/
stubs
/
/home/techb158/immovalet.com/vendor/botble/widget-generator/stubs
mkdir
upload
Name
Size
Mode
Actions
templates/
-
0755
rm
registration.stub
87
0644
edit
dl
rm
{widget}.stub
668
0644
edit
dl
rm
Edit:
/home/techb158/immovalet.com/vendor/botble/widget-generator/stubs/{widget}.stub
(668B)
<?php use Botble\Widget\AbstractWidget; class {Widget}Widget extends AbstractWidget { /** * The configuration array. * * @var array */ protected $config = []; /** * @var string */ protected $frontendTemplate = 'frontend'; /** * @var string */ protected $backendTemplate = 'backend'; /** * @var string */ protected $widgetDirectory = '{widget}'; /** * {Widget} constructor. */ public function __construct() { parent::__construct([ 'name' => __('{Widget}'), 'description' => __('Widget description'), ]); } }
Save
cmd:
run