Component Separation - backend vs frontend

Is it necessary to separate components? For example - I want to create a component to manage client contracts and also have the functionality to send out an secure link to clients via email so they can approve them. Would I have need to create 2 components for this?

A single Livewire component is comprised of a PHP file and a blade file. You can add as much or as little functionality into a component as makes sense for your use case.

You can have a component that loops a collection of users and provides a button to send out an email to them. You don’t have to split the looping and emailing into separate components if you don’t want to or it doesn’t make sense.

2 Likes