Latest Post




How to find nearest location using latitude and longitude in laravel

How to find nearest location using latitude and longitude in laravel

In this post, i would like to fine neareby place using latitude and longitude query in laravel eloquent. you can simply get nearest geolocation by mysql radius query in laravel 5. If you have places, hotels, home, city, state, country, products, dealer, supplier etc with latitude and longitude loca.....

By Hardik Savani | Views: 33016 | January 11, 2019 | Category : PHP Laravel

Laravel redirect back with input and error message example

Laravel redirect back with input and error message example

Sometime, we need to redirect back to form page with input values and error messages in laravel 5 application. So if you have same require to back with validation error message or redirect back with input value then this post will help you. we almost use laravel default validate method for validati.....

By Hardik Savani | Views: 44698 | January 10, 2019 | Category : PHP Laravel


Datatable disable sorting on particular column example

Datatable disable sorting on particular column example

If you want to remove sorting arrows or disable sorting on specific columns in datatables library than you can do it using columnDefs. we can simple disable ordering arrows from table in data tables js. even you are using with php, laravel, codeigniter, vue js etc. we can disable particular column s.....

By Hardik Savani | Views: 54101 | January 9, 2019 | Category : jQuery

PHP Codeigniter get last executed query example

PHP Codeigniter get last executed query example

In this post, i would like to show you how to get last executed query in php codeigniter 3 website using last_query() function. you can print last executed sql query like select query, create query, update query, delete query etc. Whenever you are working on big amount of project and you write lon.....

By Hardik Savani | Views: 13536 | January 8, 2019 | Category : PHP MySql Codeigniter

Where condition in Laravel Relationship Example

Where condition in Laravel Relationship Example

Laravel 5 provide great feature as model relationship. but if you need to use where clause on your relation model then how you can do it?, You can make where condition using whereHas function. it doesn't matter which relation you used like one to one, one to many, many to many, has many through etc......

By Hardik Savani | Views: 28516 | January 4, 2019 | Category : Laravel