How to Use Ternary Operator in Blade Templates
Let’s quickly look at how we can use the ternary operator in Blade templates. Here we have a simple good old if/else statement. If the… Read More »How to Use Ternary Operator in Blade Templates
Second most tallest chap in the neighbourhood. Sometimes my sense of humor causes abdominal pain. I am not yet famous for something.
Let’s quickly look at how we can use the ternary operator in Blade templates. Here we have a simple good old if/else statement. If the… Read More »How to Use Ternary Operator in Blade Templates
Let’s look at how we can check if a route exists in a Laravel project. We’re going to use the has() method from the… Read More »Check If Route Exists in Laravel
Today I would like to share with you the Code Runner extension. Code Runner allows you to run code snippets or files inside VS Code… Read More »Run Code Snippets or Files Inside VS Code
Sometimes, it becomes difficult to read numbers that contain many digits. For example, 1000 is readable but what about 1000000? Yeap, it becomes pretty tricky… Read More »Use Numeric Separators to Easily Read Big Numbers
Let’s imagine the following scenario. You’re working on a monolith or a macroservice project. And a mobile app developer comes to you and says: –… Read More »Find Route Definitions By API Paths In Seconds
Let’s look at 3 simple methods to check if debug mode is enabled in a Laravel project. Check .env file Let’s start with… Read More »3 Methods to Check If Debug Mode Is Enabled in Laravel
Let’s look at how we can get the raw SQL query from an Eloquent Model and Query Builder in just a few steps. Get… Read More »How to Get Raw SQL Query From Eloquent & Query Builder
Let’s have a look at how to run a JS file inside VS Code. To run a JS file inside VS Code first… Read More »How to Run JavaScript File Inside VS Code
Let’s have a look at how to convert file size to MB in JavaScript. Convert file size to MB in JS To convert… Read More »How to Convert File Size to MB in JavaScript
Let’s have a look at several ways you can check and get the Laravel version your app is using. Check Laravel version via CLI Check… Read More »How to Check Laravel Version of Your App