- Created stubs for JavaScript and SASS assets. - Added stubs for channel, command, component, controller, event, factory, job, listener, mail, middleware, migration, model, notification, observer, policy, request, resource, route provider, seeder, and validation rule. - Implemented scaffolding for configuration, service provider, and Vite integration. - Included example views for module structure. - Introduced a module loader for Vite to handle asset paths dynamically.
26 lines
423 B
Plaintext
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$');
|
|
}
|
|
}
|