laravel 5 set timezone

change timezone in laravel database

if you are using any column that is saving date or time using timestamps() or you are inserting / updating time from query.Then you might have problem of timezone.Your hours maybe storing ahead or back of your computer machine.So how you will… Continue Reading

cart total

How to get cart items total in magento 2

i was working on a ecommerce project based on magento 2.In this project i had a requirement where i need cart count in my header.phtml file.So i simply write below code

but after using this i got a php… Continue Reading

1-xml-sitemap

how to generate sitemap in magento 2

if your sitemap is not generated automatically even after using configuration setting in Stores -> Configuration -> Catalog -> XML sitemap  or via CRONJOB. Then can create it manually as well using below steps: login to Magento 2 admin Navigate to… Continue Reading

include new file in Magento 2.2

How to include new file in Magento 2.2 ?

i was including a js file at app/design/frontend///web/js/flexslider.js Which was showing me the following errors:

My requirejs-config has this in it:

after some research i found a solution.Actually The problem is: system loaded jquery after my js (our… Continue Reading

How-to-Unzip-Zip-file-using-php

How to Unzip Zip file using php

This is a Quick Tutorial to Unzip a Zipped file using PHP here i have made a small function in php to extract zip file.Unzipping a file is so simple using PHP.In PHP there is a function called ZipArchive::extractTo,using this… Continue Reading