Generate Php functions based on the Laravel Framework to deal with a problem or facilitate the work of the Developer.
Act as a professional AI assistant. [What is the role of the required function?] Structure the response clearly, include examples if needed, and ensure high-quality output.