How do you inject Storage in Laravel? I’ve noticed in my Google searches that all the examples I come across on how to use the various components of Laravel only show how to use Facades. But what if you want
PHP 8 Named Arguments
In PHP 8, you can use named arguments, which allows you to provide the parameters of a function in any order: PHP 7.x PHP 8 Even if you choose not to reorder the params, it will make the code clearer
A fast way to reformat code in PHPStorm
Today I found a way to do a regex find that makes reformatting code easy. Let’s say we have some code like this: and you want it formatted like this: This is what I prefer because it gives more breathing
pushd / popd
I learned a great Linux command today! I find myself jumping between my web directory and the apache config directory occasionally on my server, and by using pushd from the web directory, I’ll now be able to quickly return to
Learning Docker
Today I finished the tutorial for Docker, located at https://www.docker.com/101-tutorial This is something I’ve been wanting to dive into for a whale (I mean while) 😉