StocksNew/stubs/nwidart-stubs/component-class.stub

26 lines
423 B
Plaintext
Raw Permalink Normal View History

2024-08-27 12:03:06 +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$');
}
}