Smooth image upload and resize in laravel

Smooth image upload and resize in laravel

I find myself adding image upload and resize feature in most of the app I build. Laravel comes already packed with very easy file upload, but things get complicated as soon we need to manipulate the uploaded image. In this post, I will show you how you can make uploading and resizing image process buttery smooth. Continue reading…

learn-react-by-creating-a-comment-app

Learn React by creating a comment app

If you are coming from VueJs background learning React can be challenging at first but If you look closer its not, I would say its easier than VueJs. React is a library developed by Facebook and has a small API. But it doesn’t mean its not powerful, it has a very big community and currently ranks #1 in user interface building libraries pack. It has lots of plugins to extend it capabilities. In this post lets get started with react by creating a comment app. Continue reading…

API error handling in vue with axios

API error handling in vue with axios

Error handling within an SPA can be challenging, most of the app uses some sort of backend service to store the app data, and things can go wrong due to network connection or a bad user Input. Working with Vue.js app I have figured that to handle all the API related errors best bet is to use axios inteceptor. Continue reading…

Managing-user-timezone-in-laravel-app-v1

Managing users timezone in a Laravel app

If you are having a hard time managing users timezone in your laravel app you are in right place. In this post, I will be showing ways to manage users timezone. We will create a simple laravel application in which we will guess users timezone from the front end and store in users table to format all the timestamp based on this timezone. Continue reading…

Save laravel app settings in database

Save laravel app settings in database

I this post I am going to share one feature which most of the application have these days to change certain settings using UI, it can be implemented in many ways but one way I find doing is to store settings in the database and provide an auto-generated form to change the settings.

Continue reading…

Ready to use UUID in your next laravel app?

UUID stands for Universal Unique Identifier, it has been used to generate a unique id which is a 128 bit long numbers represented by 32 hexadecimal digits. Mostly used in software development to uniquely identify information with no further context. Continue reading…

VueJS-Pagination-Component-to-paginate-anything-in-Laravel

VueJS pagination component to paginate anything in Laravel

When it comes to listing long length data with pagination, laravel has the simplest solution to achieve it, you just call paginate() method on the Eloquent query builder and laravel will do the heavy lifting to give you paginated data. Now laravel and Vue are perfect match since Vue is the frontend framework of choice in Laravel community. In this post, we will build a component to paginate data easily from frontend using Vue.js and Laravel.

Continue reading…

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 Laravel which eliminate this issue and gives you a single place to attach your logic for view data. Continue reading…

Reusable-upload-component-in-Laravel-with-Dropzone

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 a config file. Let’s get started.

Continue reading…

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. Continue reading…