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

4 Essential Laravel Packages for Your Web Application Development ?>

4 Essential Laravel Packages for Your Web Application Development

Assalamualaikum, Recently I’ve been working with developing Laravel packages for my own use and Laravel’s community. It’s quite fun and interesting how you can separate the modules or features from Laravel’s main application and make it as a package, which later on you can reuse it over and over again. Here are some of the packages I’ve created so far. You may want to try it out, and please do make a report if there’s any issues. Artisan Extended –…

Read More Read More

Laravel: Artisan Extended – make:route ?>

Laravel: Artisan Extended – make:route

Assalamualaikum, Yesterday, I’ve shared ideas on how to manage your Laravel’s route in Laravel: Managing Routes post. Today, I want to share with you guys how to create easily the resourceful route, with or without prefix (yes, you can make route version too!). First thing first, let’s create a new Laravel project and require the Artisan Extended package to your Laravel Project. Once you’re done with installation of Artisan Extended package, you may run now in terminal the following commands:…

Read More Read More

Laravel: Managing Routes ?>

Laravel: Managing Routes

Assalamualaikum, Recently I’ve meet some of my friends, and clients working with Laravel projects. It’s seems that, Route, managing routes is quiet painful when your application become bigger and you have to handle a lots of routes. So, what’s come out of my mind was, how to manage Laravel’s routes more efficient? I’ve come up with few possible options: Define more map methods in RouteServiceProvider, and call them – but this will make the RouteServiceProvider full with map methods, which…

Read More Read More

7 Essential Sublime Text Plugins ?>

7 Essential Sublime Text Plugins

Asssalamualaikum, I’ve been using Sublime Text, quiet sometimes for web applications development. Below are the list of packages installed on my Sublime Text: SideBarEnhancements – Add more context menu on right click to file or folders phpfmt – Use for Auto Format to PSR-2 Material Theme – Better UI Emmet – HTML Helpers Git – Git Commands GitGutter – Display changes icon beside line numbers Markdown Extended And following are my Sublime Text settings: