StocksNew/stubs/nwidart-stubs/component-class.stub
Sampanna Rimal 53c0140f58 first commit
2024-08-27 17:48:06 +05:45

26 lines
423 B
Plaintext

<?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$');
}
}