While working on Zip file in your Laravel application, you might need to use PHP in-built class ZipArchive. When you use class in your controller file, you might get error "Class 'App\Http\Co...
Use the indexOf() Method
You can use the indexOf() method in conjugation with the push() remove the duplicate values from an array or get all unique values from an arr...
Use the jQuery val() Method
You can simply use the jQuery val() method to get the value in an input text box.
Try out the following example by entering something in the text input box...
On working with huge data, sometimes you might needed to get the key of minimum value of given array. You can do it with your custom function. Below is the example I found very simple and easy.
&...
In this article, I will share with you how to get one day old records in laravel using carbon. just follow simple example.
$getUserOneDayOld = \DB::table('users')
->where('is_delete', '0'...