Tag: php

Laravel PHP

Laravel Unit Test Exceptions

Let’s see how to unit test Exceptions in Laravel with PHPUnit. For that, I’m going to create a hypothetical scenario where there is a student class greets to new student, and it accepts 2 arguments. The first argument is a greeting such as “Hi”, “Hello”, and “Welcome”. And the second argument is the first name […]

Laravel

Laravel Wildcard Routes & Fallback Routes

Laravel routes can be categorized into several types. The wildcard routes and fallback routes are quite popular among them. So, let’s explore when to use them. Spoiler Alert Please note that there’s a YouTube version of this article as well. LINK – https://www.youtube.com/watch?v=5n1MqSEE7vU Wildcard routes As the word “wildcard” emphasizes it can have any value. […]

Back To Top