This commit is contained in:
2025-09-25 03:03:31 +05:00
commit ae480cf2f6
2768 changed files with 1485826 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 }};
}
}