6
π₯ You can process the output of scheduled tasks: send an email or write to a file
#Laravel Tip π₯ Few convenient methods to work with the output of scheduled tasks.
π₯ This week's code tips for Laravel developers
A weekly thread π§΅
6
#Laravel Tip π₯ Few convenient methods to work with the output of scheduled tasks.
5
π₯ Laravel Tip: You can specify what to do if a scheduled task fails or succeeds.
4
#Laravel #PHP Tip π₯ You can use #faker to not only generate text values but also fake images.
3
π₯ Laravel Tip: Accessor Caching
As of Laravel 9.6, if you have a computationally intensive accessor, you can use the shouldCache method.
2
π‘Β Just a quick tip: define every argument of commands as optional and ask for input if they are missing.
This way, you donβt need to think about the arguments when running a command.
Just run it, and it will ask everything:
1
Today I learned that PHP will insert callback parameters in the order of their defined name, when spreading an array of args with string keys, allowing you to place them in any position in the callback. Super cool! πͺ
We're writing a book, you can get it for free here. We're writing a book! Join the early access to get it for free.