September 12, 2020 — The model factories in Laravel are a great way of seeding some fake data in the database for testing purposes which I’ve discussed in this article. While the previous implementation was great, Laravel 8 has given model factories a major overhaul and it makes them even better!
September 11, 2020 — Apart from adding support for customizable maintenance mode views, Laravel 8 has also simplified the process of accessing the Laravel application in the maintenance mode.
September 10, 2020 — When you put your Laravel application on maintenance mode using the
php artisan down command, the default view for the same looks like following.
September 9, 2020 — With the release of Laravel 8, you can now render Blade components dynamically using a built-in component called
September 7, 2020 — After writing & publishing articles for about two years (consistently), I’ve sort of created a system when it comes to publishing an article. From ideation to hitting the publish button.
September 2, 2020 — Lately, I wanted to show related posts on post pages based on the category the current post lies in. So, for instance, of the post belongs to the “Jekyll” category, I would fetch the recent five posts published under this category and show those on the post. In my case, as you can tell, I’ve shown it in the right sidebar under
More in "Jekyll" label.
September 1, 2020 — In one of my articles, I’ve described how you can add different behavior to some of the classes in Laravel using macros. To give you a primer, Laravel ships with this trait called Illuminate\Support\Traits\Macroable using which you can add additional methods to the class in hand (which is using the
Macroable trait) at run time.
August 31, 2020 — Often, there comes a scenario when you want to type annotate (or type hint) some of the variables or arguments for a subset of a given type.
Follow me everywhere