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 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. […]
How to fix Laravel 10 + Inertia + ReactJS getting 404 error page on browser refresh
Inertia with Laravel is quite popular these days. Therefore, I also tried to setup a fresh Laravel 10 installation + Inertia along with ReactJS. Everything went well until I tried to refresh the page with browser refresh rather click on the links on the page. I got this 404 page. Root cause for the Laravel Inertia Issue During […]
Understanding The Bubble Sort: Simple Sorting Explained
Discover the fundamentals of bubble sort, a straightforward algorithm for organizing lists, and explore its efficiency in sorting tasks.
C#.NET project with Xunit/Nunit unit testing project referencing not working issue fix
Discover the solution to your C#.NET unit testing challenges with Xunit/Nunit. Fix project reference issues effectively with our guidance.