Tag: laravel

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. […]

Issue Fixes

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 […]

Back To Top