Swapping multiple keywords in a string in Laravel
February 1, 2022 — Sometimes, you might stumble upon a situation where you have some keywords and you want to replace those with certain keywords in the string.
A blog on PHP, JavaScript, and more
February 1, 2022 — Sometimes, you might stumble upon a situation where you have some keywords and you want to replace those with certain keywords in the string.
January 30, 2022 — Up until now, when you’re working with Laravel’s paginator and if you wanted to check whether the user is on the first page of the pagination in a Blade file, you would be using the onFirstPage()
method like so.
January 27, 2022 — I have been using Git since the start of my career (Which spans 10 years now). I have heard about this Git’s feature called cherry-pick
every now and then but I haven’t been in a situation where I would actually use it. Until today.
January 23, 2022 — Dark mode (or night mode) has been an inherently important feature that has been with all the latest operating systems. Windows comes with a dark mode, macOS as well and even most Linux distributions are offering it.
January 20, 2022 — One of the most common scenarios with modern software development is the use of CI/CD pipelines. The way these CI/CD pipelines work is, you set up a webhook on your Git repository and allow these deployments to run every time something is pushed to the repository.
January 19, 2022 — There are many ways using which you can group your routes in Laravel right now. For instance, as by middlewares, subdomains, prefixes to name a few.
January 16, 2022 — In Laravel, when you want to update the model that already exists in the database, you would first retrieve that model, set any attributes you wish to update, and then call the model’s save
method like so.
January 13, 2022 — I haven’t worked with the macOS for an extended amount of time but when I did, I made sure I keep the Alfred installed on my system because having it on my machine allowed me to do things in a matter of few keystrokes and in turn, helped me save a lot of time!
January 12, 2022 — Working with currencies is the use-case that you might find yourself stumbled upon more often than not. And one of the aspects of it is to display the currency on the frontend.
January 9, 2022 — Consider the scenario where you’re working on a Git branch called featureB
and you have a lot of unstaged files in this branch.