Skip to content

Commit

Permalink
[1.x] Adds convenience traits.
Browse files Browse the repository at this point in the history
  • Loading branch information
Italo Israel Baeza Cabrera committed Sep 4, 2024
1 parent 7ab5cee commit fe076f4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,18 @@
use Carbon\CarbonImmutable;
use Closure;
use DateTimeInterface;
use Illuminate\Support\Traits\Conditionable;
use Illuminate\Support\Traits\Tappable;
use Laragear\TokenAction\Exceptions\TokenNotFound;
use ValueError;
use function is_int;
use function value;

class Builder
{
use Conditionable;
use Tappable;

/**
* Create a new Builder instance.
*/
Expand Down
3 changes: 3 additions & 0 deletions src/Facades/Token.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
* @method static \Laragear\TokenAction\Builder tries(int $tries)
* @method static \Laragear\TokenAction\Builder with(mixed $with)
* @method static \Laragear\TokenAction\Builder as(\Closure|string $as)
* @method static \Laragear\TokenAction\Builder when(mixed $value = null, ?callable $callback = null, ?callable $default = null)
* @method static \Laragear\TokenAction\Builder unless(mixed $value = null, ?callable $callback = null, ?callable $default = null)
* @method static \Laragear\TokenAction\Builder tap(\Closure $callback = null)
* @method static \Laragear\TokenAction\Token until(\DateTimeInterface|int|string $expires)
* @method static \Laragear\TokenAction\Token|null find(string $id)
* @method static \Laragear\TokenAction\Token findOrFail(string $id)
Expand Down

0 comments on commit fe076f4

Please sign in to comment.