Tag Archives: php

Finding the nearby people/vehicle through latitude and longitude

Now that we know the latitude and longitude of the user’s current location and the range we are going to search, i.e. a center point and radius, the maximum and minimum values of longitude and latitude. First declare a function … Continue reading

Posted in Development | Tagged | Leave a comment

Laravel using google captcha validation

install captcha dependence with composer add the class interface into ‘providers’ section in config/app.php define alias into the ‘alias’ section execute command to create configuration file edit the config file accordingly in config/captcha.php the code to show the captcha in … Continue reading

Posted in Development | Tagged , , | Leave a comment

Laravel Restful API

Its not difficult to create restful API with Laravel. First create controller for handling data This will create the controller with some dummy functions index() show() store() update() destory() Update the api/FxInfoController.php Now update the routes/api.php to define where to goe.g. http://127.0.0.1:8000/api/fx will go … Continue reading

Posted in Development | Tagged , , | Leave a comment

Laravel Datatable with json data

Prepare the view with table and javascript Laravel Controller

Posted in Development | Tagged , , , | Leave a comment

Installing Laravel in OSX

Installing Laravel in OSX is not difficult, just follow the steps below Install Homebrew For the latest install command, visit http://brew.sh Install PHP with Homebrew Find PHP 7 Install PHP 7.3 Install mcrypt Install MySQL Install Composer Visit https://getcomposer.org Click … Continue reading

Posted in Development | Tagged , , | Leave a comment