Blog

Insights, tutorials, and thoughts on web development and technology.

Bootstrap 5 Navbar - Show Menu Items on Large Screen

Bootstrap 5 Navbar - Show Menu Items on Large Screen

If you are working with Bootstrap 5 navbar and by default you want to show menu items in the navigation bar for all screen sizes above than lg i.e. ≥992px. You can add following class to the nav...

May 05, 2022 · Tushar
Refreshing / Re-Render a Livewire Component

Refreshing / Re-Render a Livewire Component

If you are working with Laravel Livewire, there might be instance when you want to refresh the data on the front end. Here is how you can do it You can add a listener to your component that refre...

Apr 29, 2022 · Tushar
Download PDF on external URL via Laraval

Download PDF on external URL via Laraval

If you have the URL of PDF which is situated on some other domain. You can allow it to be downloaded via your laravel application with following code $pdf = file_get_contents('http://www.africau....

Mar 10, 2022 · Tushar
Get count of records created today Laravel

Get count of records created today Laravel

If you are looking to get the total number of records that are created / updated today in the mysql database, then the following Eloquent query will come handy. Considering we have a model named Po...

Mar 09, 2022 · Tushar
Laravel - List all files in public directory

Laravel - List all files in public directory

Laravel's Storage facade makes it easier to get list of files within a directory. However if you are looking to get a list of files within the public directory, or any other directory within the publi...

Dec 13, 2021 · Tushar