32 lines
470 B
Plaintext
32 lines
470 B
Plaintext
<?php
|
|
|
|
namespace {{namespace}};
|
|
|
|
use App\Contracts\Widget;
|
|
|
|
/**
|
|
* Class {{class}}
|
|
* @package {{namespace}}
|
|
*/
|
|
class {{class}} extends Widget
|
|
{
|
|
/**
|
|
* The configuration array.
|
|
*/
|
|
protected $config = [
|
|
|
|
];
|
|
|
|
/**
|
|
* Treat this method as a controller action.
|
|
* Return view() or other content to display.
|
|
*/
|
|
public function run()
|
|
{
|
|
|
|
return view('{{view}}', [
|
|
'config' => $this->config,
|
|
]);
|
|
}
|
|
}
|