| 1 | <?php |
||
| 8 | class WidgetPublishCommand extends Command |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The name and signature of the console command. |
||
| 12 | * |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $signature = 'widget:install {name}'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * The console command description. |
||
| 19 | * |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $description = 'Install YajraCMS widget.'; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var \Yajra\CMS\Widgets\EloquentRepository |
||
| 26 | */ |
||
| 27 | protected $widgets; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Create a new command instance. |
||
| 31 | * |
||
| 32 | * @param \Yajra\CMS\Widgets\EloquentRepository $widgets |
||
| 33 | */ |
||
| 34 | public function __construct(EloquentRepository $widgets) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Execute the console command. |
||
| 42 | * |
||
| 43 | * @return mixed |
||
| 44 | */ |
||
| 45 | public function handle() |
||
| 53 | } |
||
| 54 |