Skip to content

Instantly share code, notes, and snippets.

Avatar
🌴
Digital Nomading

madsem

🌴
Digital Nomading
  • all over the place
View GitHub Profile
@madsem
madsem / cd.yml
Last active Aug 4, 2021
GitHub Workflows For: Laravel CI with Mysql 8 & Laravel Vapor Deployment
View cd.yml
name: Laravel Vapor CD
on:
release:
types: [ published, deleted ]
branches:
- master
jobs:
deploy_release:
runs-on: ubuntu-20.04
@madsem
madsem / CreateDateRangeSequences.php
Last active Jun 5, 2020
Create date ranges in sequence
View CreateDateRangeSequences.php
/**
* Create a range of dates that are in sequence to properly mirror production data.
*
* @link https://carbon.nesbot.com/docs/#api-period
*
* @param $first
* @param $last
* @param int $resetAfter
*
* @return string