Amitav Roy

Blog on web and travel

Laravel Livewire and the new File upload feature

Posted on 12 Jun 2020 by Amitav Roy

**Laravel Livewire** is a new package developed by Caleb Porzio which really changes the approach of how you do front end development. It is a composer package which allows you to create components in PHP which are reactive as well similar to Vue or React. The entire component code is inside PHP and blade files but you get a feeling of and SPA. Initially, everything will look very magical as you are writing only PHP code but getting JavaScript behaviour. But, once you start getting hold of things you will understand the beauty of this project and how it really speeds up your development time. How a user interacting with the component can directly trigger a server side function. How it can re-render pieces of data inside a website, so on and so forth.

Setting up husky & lint-staged for code format and unit tests before git push

Posted on 28 May 2020 by Amitav Roy

In one of my recent projects, I wanted to set up a process where my code is checked for code formatting and unit tests are executed automatically before the code is pushed to the git repository. We have worked with Gitlab pipelines where code is validated against multiple php versions and it will automatically notify if any code commit is breaking anything.

Migrating my blog from CMS to Laravel

Posted on 19 Dec 2019 by Amitav Roy

My blog has always been a way for me to convey my feelings about some of the developments and RND that I do during my work or even during my spare time. For a long time, I use to rely on a CMS for the blog. Initially Drupal and then for almost last two years on WordPress. But, this time I took a decision and changed the entire system into a Laravel application. In this post, I am going to share my reason for some of the decision that I took and some of my views which made me take those decisions.

Turtuk - The last village of India and its amazing history

Posted on 21 Jul 2019 by Amitav Roy

Turtuk is a small village along the banks of Shyok river and it is considered to be the last village of northern India. With the Karakoram range on one side and the great Himalayas on the other, this small village has so much to offer for the tourists. Even now, not many people venture into this place as it is another 90 kms from Diskit. Because the roads are not very good, it can take you more than 3 hours to reach Turtuk from Diskit.

A bike trip to Diveagar - prep for the bigger journey

Posted on 26 Jun 2019 by Amitav Roy

We wanted to start early, however due to some unforeseen issues we got delayed. From Vashi, Navi Mumbai we started at around 7 am and we were hoping that we will not get too much traffic. The idea was to have the bag stuffed, the jackets and everything to mock the situation that we will be facing in Leh. And the moment we started, we knew one thing is going to be a challenge and that’s the bag. Although the sitting position for the rider and pillion is quite comfortable in Himalayan, the moment we introduced the big rucksack, the situation did a 360. This trip was only one day’s halt but we packed some extra luggage just to get the feel.

My first Laravel conference LaravelLiveIndia 2019

Posted on 10 Mar 2019 by Amitav Roy

My love for Laravel has been since the days of Laravel 3. Looking at the great documentation, intuitive API which is so developer friendly and many other reasons, I was convinced that this is the framework of choice for me to work on any project when the stack is primarily PHP. By now it has grown a lot. A lot of new features are being added to the framework. And every new version would be announced at conferences and it's creator Taylor Otwell and so many other great developers would speak about the framework, new patterns and ways of development etc.

Continuous Integration with Gitlab on Laravel

Posted on 26 Jan 2019 by Amitav Roy

I have been practising test-driven development (TDD) for quite some time on projects where I was working alone or my own side projects. But when it comes to working with a team, you come up with new and very interesting challenges. I wanted to ensure that everyone runs PHPUnit before they commit code and yes there are chances even I can forget to check. Human errors are possible, right?

Laravel Register and Login controller and why we should modify it

Posted on 18 Mar 2018 by Amitav Roy

If you have ever used Laravel's auth setup even once, you know how much time it can potentially save when we just want to get going. But, I am not going to talk about what comes with the auth scaffolding. I am here to talk about why it is ok to modify the Login and Register controller which comes by default and how we are going to customise them to our unique requirements.

My trip to Shrivardhan, Harihareshwar

Posted on 31 May 2017 by Amitav Roy

Shrivardhan is a small city about 180 km from Navi Mumbai and it is a perfect place for a small trip. If you have a couple of days in hand then a trip to this place would be a perfect holiday destination. The road condition is generally good and so it's a perfect getaway for those who want to get out of the fast life and relax near a beach.