Files
phpvms/resources/stubs/widgets/widget.stub
Nabeel S 9f3ba05880 Issue/329 refactor seeding (#337)
* Fix Contracts class names

* Refactoring of the file seeds so it's not a mess

* StyleCI fixes
2019-08-05 08:27:53 -04:00

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,
]);
}
}