Files
postshop-backend/stubs/view-component.stub
2026-02-03 15:31:29 +05:00

27 lines
436 B
Plaintext

<?php
namespace {{ namespace }};
use Closure;
use Illuminate\View\Component;
use Illuminate\Contracts\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|Closure|string
{
return {{ view }};
}
}