A curated list of amazingly awesome PHP libraries, resources and shiny things.
A simple script to download Bing's daily background images.
A utility that delete your old tweets and favourites and turns you into a social media hermit.
Here's a trait that adjusts the parameters of with()
to behave like withConsecutive()
using callback()
: https://gist.github.com/ziadoz/370fe63e24f31fd1eb989e7477b9a472
I've refactored the trait code that checks if an API resource has a pivot here into a separate method, because it makes it easier to do complex checks in a Resource
, which is something I've needed to do:
$this->mergeWhen(
$this->resource->field === 'whatever' && ! $this->resource->hasPivotLoaded('pivot_table'),
['foo' => 'bar'],
);
The changes here should be covered by existing tests that use PostResourceWithOptionalPivotRelationship
.
@dependabot squash and merge
fix brew/pure zsh bits
remove old brew path
Here's a trait that adds a method to adjust the parameters with()
receives to work the same as withConsecutive()
: https://gist.github.com/ziadoz/370fe63e24f31fd1eb989e7477b9a1472
img/vid snap
light theme
Merge branch 'master' of https://github.com/ziadoz/dotfiles
@dependabot squash and merge