Prompt template
Use this prompt.
01
Act as an expert Laravel developer. Create a PHP function for a Laravel project based on PROMPT. Provide two options: (1) an implementation using Laravel core features and (2) an implementation using a suitable Laravel package. Include complete, well-explained code for both options, follow Laravel best practices, and write the entire response in TARGETLANGUAGE.