Blade stringable to handle objects centrally in Laravel 8.x
May 31, 2021 — Wouldn’t it be useful if you could define a certain action that should be performed every time your Blade templates encounter objects of a specific class?
A blog on PHP, JavaScript, and more
May 31, 2021 — Wouldn’t it be useful if you could define a certain action that should be performed every time your Blade templates encounter objects of a specific class?
May 25, 2021 — Laravel has this cool feature using which you can put your website in maintenance mode. To do so, all you will need to do is run the following command.
May 17, 2021 — When working on enterprise applications, it’s often the use-case to fetch data from the server from the frontend. This involves fetching data asynchronously and rendering it to the frontend when the data is fetched successfully or render the error message if something goes wrong during this entire process.
May 15, 2021 — When working on projects, it’s often a case when you would find yourself dabbling between different branches. Maybe you’re working on different features simultaneously or you’re keeping your feature branch up-to-date with your master/main branch. You would need to switch between branches in any of the cases.
May 12, 2021 — When working with functions, there might come the scenario where you’re unsure as to how many arguments a function would have. Basically, a function can have an unlimited number of arguments that you don’t define in the function signature.
May 7, 2021 — It’s just another day where I got to learn gemstone of command for Linux’s Bash shell once again.
May 5, 2021 — When you want to extend some of the classes’ functionality in Laravel, Macros are your best bet. Your imagination is the only limit to what you can do with macros.
May 3, 2021 — Sometimes, there might be a use case where you want to change the URL’s query parameters as you type in an input field.
April 27, 2021 — Recently, I added a set of few keyboard shortcuts on this blog which helps in navigating through different parts of the blog conveniently. You can check all the shortcuts on this dedicated page.
April 26, 2021 — In my previous article, I talked about the new custom password rule object which brings in the ability to easily add various validation rules to the password field.