
10 Random Laravel Snippets & Methods, Part 4
I write code blocks down that I know I won't use often and will forget about. Every so often I go through them to refresh my memory.
Snippets
I write code blocks down that I know I won't use often and will forget about. Every so often I go through them to refresh my memory.
Sometimes ideas pop into my head that I don't immediately need, but I think are a good exercise. So I carve out 15 minutes of my day to code an example to learn and save to my library of components for future use.
I write code blocks down that I know I won't use often and will forget about. Every so often I go through them to refresh my memory.
I used to just load a helpers.php file in composer.json like everyone else, however the last couple years I have taken a more organizational approach.
I write code blocks down that I know I won't use often and will forget about. Every so often I go through them to refresh my memory.
Learn how to use view composers to share small pieces of data across multiple views instead of passing them through many controllers.
If you ever have the need for a UUID column on your models, you may as well use a trait to populate them in case you need the same functionality on other models in the future.
Did you know you can easily add the production consoles messages you get with Laravel's migrate and seed to your own commands?