This commit is contained in:
2026-02-03 15:31:29 +05:00
commit 326c677e8d
2800 changed files with 1489388 additions and 0 deletions

26
stubs/view-component.stub Normal file
View File

@@ -0,0 +1,26 @@
<?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 }};
}
}