Tag Archives: laravel

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

Laravel session storage in redis

Redis provide a better performance compare to file storage for your session driver, the following show how it can be done. Setting up redis configuration, edit config/database.php,in redis section add session option and adjust database number accordingly. Edit config/session.php to use redis and connect to … Continue reading

Posted in Development | Tagged , | Leave a comment