Browsed by
Tag: api

HAProxy: Setting Up CORS

HAProxy: Setting Up CORS

Assalamualaikum, It’s been awhile since my last post – quite tight up with business and development – and here we are, just sharing a new thing I learnt – HAProxy. Currently I have a mobile application need to consume my API (Laravel based) – and I have no problem setting up CORS from Laravel. But working on a bit scale up infrastructure, and in HA architecture, need to setup CORS on load balancer, which is HAProxy. Following are the minimal…

Read More Read More

Reset Your Password from API

Reset Your Password from API

As you may know, Laravel provide a scaffold auth, which include reset/forgot password on web applications side. But what if you have a mobile application that need to reset password from the mobile application? In this post, I’ll show you how to reset user’s password from an API in Laravel. UPDATE 02/07/2017: In case you’re looking for App\Transformers\Json, you basically can create a class called Json in app/Transformers directory. In the Json class: Please make sure to composer dumpautoload -o…

Read More Read More

Training: Web Application Development with Lumen(API)

Training: Web Application Development with Lumen(API)

Date: Saturday, 6th February 2016 Available Seats: 25 Fee: Student – RM 100, Public – RM 250 Location: Level 2, above Yamaha Motorsport Shop Lot REGISTER HERE Objectives To learn how to develop an API with micro-framework Lumen Preparation Following items need to be install first before coming to the class: Laragon Git & GitHub Account Sublime Text 3 Postman (www.getpostman.com) Prerequisites PHP & MySQL is compulsory. A good understanding of OOP is value added. Audience Software developers with PHP and…

Read More Read More

Training: Mobile Apps Development with Intel XDK

Training: Mobile Apps Development with Intel XDK

Location: Medina Arabic Training & Solutions, Bangi Sentral (Above Melaka Kitchen Restauurant)   Date: 23th & 24th January 2016 Available Seats: 20 seats Fees: Student Package Intel XDK API 2 Days 150 1 Day 50 120   Public Package Intel XDK API 2 Days 250 1 Day 100 175 * Fee payment must be made first in order to reserved your seats.   Loading…   Register here if you unable to see the Google Form embed in this post.

Lumen: API Development – Episode II

Lumen: API Development – Episode II

In this episode, we will configure the environment of the API, and setup some fake data. For those not yet read the Episode I, you can read it here. In general, we have these steps: Configure .env Create model Create migration script & do migration Create seed script & do DB Seeding For the first few steps will straightforward before we continue with Eloquent. Rename .env.example to .env Generate 32 random characters and update the APP_KEY – I use textmechanic to generate…

Read More Read More

Lumen: API Development – Episode I

Lumen: API Development – Episode I

So, this post is about develop your own API using Lumen, a micro framework, a child of the Laravel (I assumed it that way). This topic will take few parts and this is the Episode 1 of Lumen: API Development. Following tools required to be install on your machine: Virtual Box – For those using Avira Anti Virus, you might need to head over this article if you having problem with Virtual Box. Vagrant – Enable developers to easily share the…

Read More Read More