Trial | Trial + Cancelled | Recurring | Recurring + Cancelled | Cancelled [ended] | |
---|---|---|---|---|---|
onTrial() |
✅ | ✅ | ❌ | ❌ | ❌ |
active() |
✅ | ✅ | ✅ | ✅ | ❌ |
valid() |
✅ | ✅ | ✅ | ✅ | ❌ |
cancelled() |
❌ | ✅ | ❌ | ✅ | ✅ |
onGracePeriod() |
❌ | ✅ | ❌ | ✅ | ❌ |
Trial | Trial + Cancelled | Recurring | Recurring + Cancelled | Cancelled [ended] | |
---|---|---|---|---|---|
ended() |
❌ | ❌ | ❌ | ❌ | ✅ |
resumable() |
❌ | ✅ | ❌ | ✅ | ❌ |
activelyRecurring() |
❌ | ❌ | ✅ | ❌ | ❌ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Builders; | |
use Illuminate\Database\Eloquent\Builder as BaseBuilder; | |
class Builder extends BaseBuilder | |
{ | |
public function search($term, $attributes) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This the CSS for my site. Might not apply directly to yours. | |
.rich-text h1, | |
.rich-text h2, | |
.rich-text h3, | |
.rich-text h4, | |
.rich-text h5, | |
.rich-text h6 { | |
position: relative; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
namespace Transducers; | |
use Closure; | |
function compose(array $reducers): Closure | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Responses; | |
use App\Models\ContactType; | |
use App\Factories\CsvFactory; | |
class ContactIndexResponse extends Response | |
{ | |
public function __construct($contacts) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$log = fn ($message) => print '['.number_format(microtime(true), 4, '.', '').'] '.$message.PHP_EOL; | |
$bail = function ($reason = null) use ($log) { | |
$reason ??= socket_strerror(socket_last_error()); | |
$log($reason); | |
exit(1); |