New-OMIS/stubs/nwidart-stubs/component-class.stub

26 lines
423 B
Plaintext
Raw Normal View History

2024-04-04 10:35:27 +00:00
<?php
namespace $NAMESPACE$;
use Illuminate\View\Component;
use Illuminate\View\View;
class $CLASS$ extends Component
{
/**
* Create a new component instance.
*/
public function __construct()
{
//
}
/**
* Get the view/contents that represent the component.
*/
public function render(): View|string
{
return view('$LOWER_NAME$::$COMPONENT_NAME$');
}
}