added view components support for modules

This commit is contained in:
Denis Duliçi
2020-11-11 14:26:30 +03:00
parent 1cff173824
commit 1deeece33a
3 changed files with 42 additions and 1 deletions

View File

@ -0,0 +1,28 @@
<?php
namespace $NAMESPACE$;
use Illuminate\View\Component;
class $CLASS$ extends Component
{
/**
* Create a new component instance.
*
* @return void
*/
public function __construct()
{
//
}
/**
* Get the view / contents that represent the component.
*
* @return \Illuminate\Contracts\View\View|string
*/
public function render()
{
return view('$ALIAS$::$VIEW_NAME$');
}
}