Category Archives: Laravel
How to search JSON data in MySQL?
If you have JSON type columns in your database and want to run query on JSON type field. You can use the following query. In the above query <json_column> must be replace by your column name. $.id and $.response contains the JSON key of your columns. You can use for multiple values also. For example… Read More »
How to redirect from http to https using .htaccess ?
Redirect to https If you want to redirect each request coming should go to https instead of HTTP without any plugin. then Step1: Go to root directory of your website and look for .htaccess file. It should be exist in root directory. Step2: Find the ‘RewriteEngine On’ Add the following code after that. 1 2… Read More »
How to create custom helper functions in Laravel 5?
From the laravel official Laravel includes a variety of global “helper” PHP functions. Many of these helper functions are used by the framework itself; however, you are free to use them in your own applications if you find them convenient. Helpers are pre built utility functions in laravel which we can use directly without any… Read More »