Skip to content

Instantly share code, notes, and snippets.

View Mohammad-Alavi's full-sized avatar
🏠
Working from home

Mohammad Alavi Mohammad-Alavi

🏠
Working from home
View GitHub Profile
@Mohammad-Alavi
Mohammad-Alavi / paginate.php
Created April 25, 2018 23:37 — forked from vluzrmos/paginate.php
Laravel Paginate Collection or Array
<?php
/**
* Gera a paginação dos itens de um array ou collection.
*
* @param array|Collection $items
* @param int $perPage
* @param int $page
* @param array $options
*
* @return LengthAwarePaginator
@Mohammad-Alavi
Mohammad-Alavi / conventional-commits.md
Last active January 15, 2022 06:55 — forked from Zekfad/conventional-commits.md
Conventional Commits Cheatsheet

Quick examples

  • feat: new feature
  • fix(scope): bug in scope
  • feat!: breaking change in API
  • chore(deps): update dependencies

Commit types

  • build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
  • ci: Changes to CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
  • chore: Changes wich doesn't change source code or tests e.g. changes to the build process, auxiliary tools, libraries