Create a repository that represents the Ticket. It holds all your persistence related logic. You could create a method on it called getTicketByName() and pass your input. Just inject into your controllers, and call the method.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community