publishing stubs

This commit is contained in:
Geriano
2022-08-10 04:43:16 +07:00
parent 45c5c56cff
commit 02bfa6aa5b
39 changed files with 1460 additions and 0 deletions

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

@@ -0,0 +1,28 @@
<?php
namespace {{ namespace }};
use Illuminate\View\Component;
class {{ class }} extends Component
{
/**
* Create a new component instance.
*
* @return void
*/
public function __construct()
{
//
}
/**
* Get the view / contents that represent the component.
*
* @return \Illuminate\Contracts\View\View|\Closure|string
*/
public function render()
{
return {{ view }};
}
}