jetstream icon indicating copy to clipboard operation
jetstream copied to clipboard

[3.x] Copy Blade files on installation

Open jessarcher opened this issue 1 year ago • 0 comments

This PR updates Jetstream so that it copies the Livewire components on installation to make it more like Breeze, and more like the Vue stack.

I've placed them in resources/views/components instead of resources/views/vendor/jetstream/components where they are currently published, to give the user a better sense of ownership over the components, and to leverage Laravel's anonymous components.

I've also removed the jet- prefix from the components.

Finally, I've also made it copy the email views on installation for both stacks so there's no resources that aren't copied. I named the directory resources/views/emails to match the suggested directory from the Laravel docs (here and here)

I've marked this as 3.x because I believe it is a breaking change to remove the ability for existing Jetstream users to publish the views. We could potentially still offer the publishing, but I think we'd need to maintain the jet- prefix to keep it compatible with their existing views.

jessarcher avatar Aug 10 '22 06:08 jessarcher

@jessarcher thanks - will we need any docs changes here?

taylorotwell avatar Aug 15 '22 15:08 taylorotwell

@taylorotwell indeed! I have created a draft PR at https://github.com/laravel/jetstream-docs/pull/70 to add docs for 3.x

jessarcher avatar Aug 16 '22 22:08 jessarcher