Category Archives: Frameworks
How to add primary key in table?
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 »
How to Translate Text to desired language ?
Just follow these steps and copy & paste the code you can translate text easily. Step 1 : Make a div with id (id is compulsory) Like <div id="content">Loading…</div><div id="content">Loading…</div> Step 2 : Paste the following code to head section under script tag of your webpage. <script type="text/javascript"> google.load("language", "1"); function initialize() {… Read More »