Git Hooks Implementation in Laravel: Unit Testing & Prettier Automation

Cerwyn Cahyono
3 min readJun 22, 2021

As a web developer, we’ll be always working with the team. We want to make sure that our codes have the prettier standard and minimalizing bugs pushed into our git repository. As we already know, we can do those implementations using CI/CD to test our app before the deployment happens. But the question is, can we make that automation run locally whenever developers pushed the codes into the git? So we’re sure that every code that is pushed by developers is bug-free and also has prettier standardization.

--

--

Cerwyn Cahyono

PHP/Backend Engineer at Undercurrent Capital Pte Ltd — Data Science Enthusiast