Tag Archives: api

Laravel: Reset Password From an API

Assalamualaikum, Today, will share about how to reset your account in Laravel application from an API. This is assumed you already setup JWT Auth in your Laravel app. Create a new API controller – php artisan make:controller Api/Auth/ForgotPasswordController and copy paste the following code, and add the forgot password route in routes/api.php. So, basically what… Read More »

Laravel: Custom Accept API Header

Assalamualaikum / Hi, It’s been a while since I stumble upon an API, which have custom Accept header. For a past few days, I have a chance to implement custom header on one of my client project. Here is how I did – create a middleware to filter the coming request. As you can see… Read More »

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… Read More »

Reset Your Password from API

UPDATE 27/4/2018 – New blog post about reset password from an API – LARAVEL: RESET PASSWORD FROM AN API. Much more simpler than this one. 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… Read More »