laravel-actions icon indicating copy to clipboard operation
laravel-actions copied to clipboard

⚡️ Laravel components that take care of one specific task

Results 42 laravel-actions issues
Sort by recently updated
recently updated
newest added

This PR adds a contract that can be extended for any actions in a user's application. This allows for easy registration of any action using the full service pattern. For...

When using an action as a job, I need to be able to access the job batch. I was hoping `asJob()` passed in the job, or that there would be...

Hi, I've been searching the docs to find a way to dispatch actions as jobs in specific queues, but I haven't found it yet. I'm pretty sure I'm missing something....

Hi, I would like to use some method from `FormRequest` object like `safe`, `validated` but the asController method need a `Request` object and the method `safe` doesn't exists inside this...

Hey, the `asListener` method is not called when the action is registered in the model file itself: ```php // app/Models/Foobar.php protected $dispatchesEvents = [ 'created' => MyCreatedAction::class, 'saving' => MySavingAction::class,...

Using Laravel Octane seems that actions are run as object instead of listener. The problem is similar to #87, the workaround on EventServiceProvider event/listener registration works. `UserUpdated::class => NotifyUserUpdated::class.'@asListener'`

help wanted

Hi there, it seems like the CreatesMatchingTest has been removed, I am unable to update my dependencies. `Trait "Illuminate\Console\Concerns\CreatesMatchingTest" not found at vendor/lorisleiva/laravel-actions/src/Console/MakeActionCommand.php:8 4▕ 5▕ use Illuminate\Console\Concerns\CreatesMatchingTest; 6▕ use Illuminate\Console\GeneratorCommand;...

Hi admin, how to implement public $deleteWhenMissingModels = true; on an action class? Thank you

Hi! I have this test assertion in my tests: ```php SendWelcomeEmail::assertPushed(function (SendWelcomeEmail $job) use ($user) { return ($job->user->id === $user->id) && !empty($job->new_password); }); ``` And I get this error in...

Hey there 👋 Thanks for the great package. I present here as an example a program that throws an error in a handle method and catches this error and displays...