Laravel Pro Tips
🔥 Laravel Tip: Auto-completion in artisan commands.
When you prompt a user for input, you can use the `anticipate` method to auto-complete possible responses.
Just found out there's a single artisan command to clear out all Laravel caches, much less typing!
Use the then() method to ensure an Artisan command runs when another one completes. A tip from @therobfonz. #PHP #laravel #webapplicationdevelopment
🌶️ #Laravel Tip: Inside an 𝘼𝙧𝙩𝙞𝙨𝙖𝙣 𝘾𝙤𝙢𝙢𝙖𝙣𝙙, you can execute bash scripts using the 𝙚𝙭𝙚𝙘() function.
Here's an example with an explanation 🌟
Bilal Haidar | Laravel Enthusiast
Laravel tip of the day: if you have an Artisan command, and you want to launch another command inside of it, suppressing any potential messages/prompts it may have, use $this->callSilent()
Example from Laravel Jetstream: https://t.co/cpSacILxIk
Povilas Korop | Laravel Youtuber & Content Creator
🔥 #Laravel Tip: If you find yourself constantly making changes to new files generated by Artisan's 'make' commands, then consider publishing the stubs and creating your own defaults. It can be a real time saver:
Matt Kingshott 🏝
🔥 #Laravel Tip: Save a little bit of database disk space by clearing out expired password reset tokens using the handy 'auth:clear-resets' Artisan command.
No articles were found.