React JS | Laravel | SPA Github | Git hooks
In this video, we are going to look at how we can use an npm package husky along with lint-staged to format our php files which are staged for git commit using php-cs-fixer. This will allow us to keep our code maintain standard formatting and also allow the developer to not worry about the code format because they know that when they commit the code, this thing will be taken care automatically.
Code: https://github.com/amitavroy/react-sp...