Latest Articles

  • Use Laravel View Composer to share data in partial views

    Use Laravel View Composer to share data in partial views

    Ever been in a situation where you have to share some data with multiple views? I have. If you are passing it in every controller pretty soon it will get very messy since you end up duplicating same code in multiple controllers which is against the DRY principle. Let’s learn about view composer provider by…

  • Reusable upload component in Laravel with Dropzone.js

    Reusable upload component in Laravel with Dropzone.js

    In this post we will create a blade component which we can reuse in any application where we want a file uploader, we will use Dropzone.js to add drag and drop uploading functionality, and laravel as a backend to store the uploaded file, It can upload an image or document which will be configurable using…

  • TDD API for Project management app with Laravel

    TDD API for Project management app with Laravel

    Getting started with TDD can be intimidating at first since there are many new terms and jargons which makes difficult to even get started for a new commerce. In this post let’s take a very practical approach by building a Project Management app API with TDD on Laravel.

  • Building front-end for  Twitter Like app on VueJS

    Building front-end for Twitter Like app on VueJS

    In the previous post we have built our GraphQL API using Laravel, now let’s focus on the front end and build the Twitter like app using Vue.js, Vuex & Vue router, it will be a completed SPA app, only the auth part will be taken care by laravel out of box authentication, once user logs…

  • Build API for Twitter like app using GraphQL in Laravel

    Build API for Twitter like app using GraphQL in Laravel

    Recently I have been working on something very amazing for API development, everyone has been using REST to access API, but now things are changing, in the front-end heavy world where things are consistently growing and new features added every week a fixed REST API is not very good option anymore, so what we need…

  • Practical use of Components and Mixins in Vue JS

    Practical use of Components and Mixins in Vue JS

    In this post we will take a deep look into Components and Mixins in Vue JS, you must be familiar with components as its provider by all major JS frameworks out there. They help you extend basic HTML elements to encapsulate reusable code. At a high level, components are custom elements that Vue’s compiler attaches behaviors…

  • OAuth login using Facebook, Google, Twitter and Github with Laravel Socialite

    OAuth login using Facebook, Google, Twitter and Github with Laravel Socialite

    These days majority of web apps delegate authentication to other providers like Facebook, Google, Twitter, Github and many others. By using OAuth we don’t have to worry about storing user credentials on our server and gives user flexibility to use the same account to authorize on multiple platforms.

  • Use MySQL JSON field in Laravel

    Use MySQL JSON field in Laravel

    I have been working on an application which needs to store a lot of metadata about user profile, we discussed with the team about using NoSQL database (MongoDB) since its a JSON data set which can be extended and customized for the specific user profile due to its schemaless structure. As we know from MySQL 5.7.8 JSON…