Despite some research, I could not find any reference to how to customise Jetstream components such as 'welcome'. Maybe someone has a hint how to do this? Thanks!
Despite some research, I could not find any reference to how to customise Jetstream components such as 'welcome'. Maybe someone has a hint how to do this? Thanks!
Try this:
php artisan vendor:publish --tag=jetstream-views
After that files will be available under the folder resources/views/vendor/jetstream/components
In this directory you will be able to find this welcome.blade.php
it easy to customize use
php artisan vendor:publish --tag=jetstream-views
to publish Components
go to resources/views/welcome.blade.php
edit and modify the blade file to suit your customization
If you want to create a custom Laravel Jetstream Blade component for example my-component or override a predefined one, there are steps:
resources/views/components/my-component.blade.phpboot() method of JetstreamServiceProvider class at app/Providers/JetstreamServiceProvider.phpand add the code:
public function boot()
{
//existing code....
$this->callAfterResolving(BladeCompiler::class, function () {
Blade::component('components.my-component', 'jet-my-component');
});
}