Skip to content

Instantly share code, notes, and snippets.

View kirkbushell's full-sized avatar

Kirk Bushell kirkbushell

  • Creative Force
  • Sydney
View GitHub Profile
<?php
'cloud' => env('FILESYSTEM_CLOUD', 'do'),
..
'do' => [
'driver' => 's3',
'key' => env('DO_ACCESS_KEY_ID'),
'secret' => env('DO_SECRET_ACCESS_KEY'),
@kirkbushell
kirkbushell / Post.php
Created August 27, 2023 12:31
Updated syntax for supporting caches in Eloquence
<?php
use Eloquence\Behaviours\CountCache\CountedBy;
use Eloquence\Behaviours\CountCache\HasCounts;
use Illuminate\Database\Eloquent\Model;
class Post extends Model {
use HasCounts;
#[CountedBy]