Using custom class as a Facade in Laravel
April 29, 2020 — Facades, in Laravel, is basically a way of using Laravel’s classes without injecting them into the constructor of the class in which you want to use them.
A blog on PHP, JavaScript, and more
April 29, 2020 — Facades, in Laravel, is basically a way of using Laravel’s classes without injecting them into the constructor of the class in which you want to use them.
April 27, 2020 — Laravel Blade comes with many in-built directives such as @section
, @yield
, @parent
, @json
and several others, all of which have a certain purpose attached to them.
April 26, 2020 — In this article, I’ve written about how to use event subscribers or observer pattern in Laravel.
April 24, 2020 — The Observer design pattern is one of the twenty-three well-known “Gang of Four” design patterns that describe how to solve recurring design problems to design flexible and reusable object-oriented software, that is, objects that are easier to implement, change, test, and reuse.
April 23, 2020 — Sending emails in Laravel is a breeze. All you have to do is, configure your default mail service in config/mail.php
and it’s related configuration in config/services.php
file.
April 22, 2020 — The blog that you’re on right now is built using Jekyll. So, the other day, I was looking for a way to make images clickable. If you’ve worked with Jekyll previously, you might be knowing that the classic way to insert an image in Jekyll is to use the following Markdown markup like so.
April 21, 2020 — Have you ever been in a situation where you’re testing an application but you don’t have access to the source code but you still want to debug some part of the code by console logging the variables?
April 20, 2020 — If you’re a 90’s like me, you most certainly be the fan of all the cartoons from Cartoon Network, Disney and the other similar franchises. That was an era of classic cartoons such as Tom & Jerry, Popeye the Sailor, The Flinstones, Disney’s Mickey Mouse and lots others.
April 17, 2020 — I recently stumbled upon this ghost feature of PHP using which you can actually use streams in order to post data using a HTTP POST request.
April 15, 2020 — Sometimes all you need is to define and call function at the same time and only once throughout the scope. Such functions are called as Immediately Invoke Function Expression (IIFE) also known as Self-Executing Anonymous Function.