Skip to content

Commit

Permalink
Merge pull request #4 from demianbinsh/use-interacts-with-queue
Browse files Browse the repository at this point in the history
Use InteractsWithQueue
  • Loading branch information
freekmurze authored Dec 11, 2024
2 parents 190585e + c0b9a2c commit 97dd95c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Concerns/InteractsWithPayload.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
namespace Spatie\InteractsWithPayload\Concerns;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Queue\InteractsWithQueue;

trait InteractsWithPayload
{
use InteractsWithQueue;

public function getFromPayload(string $name): mixed
{
$payload = $this->job->payload();
Expand Down

0 comments on commit 97dd95c

Please sign in to comment.