PHP

PHP to remove unnecessary key and value pairs from any multi-dimensional array

Today I will share a snippet I've used in a project. Using that function, you can recursively remove key-value pairs…

2 years ago

Create custom pagination template in Laravel

Laravel comes up with a paginator that generates HTML compatible with the Tailwind CSS framework. But Laravel allows you to…

3 years ago

Define global variables in laravel

Imagine you want to define some variables that can be accessed from anywhere in your laravel project. To achieve that,…

3 years ago

Run laravel artisan commands without ssh access

Laravel has its own command-line interface named Artisan. It has a list of useful commands. You'll need to use artisan…

3 years ago

Best methods to get random records from database table in laravel

Sometimes we want to show random data from a table. Eg. Showing 10 random blog posts from 1000s of posts.…

4 years ago