laravel-actions
laravel-actions copied to clipboard
⚡️ Laravel components that take care of one specific task
I read the "Add validation to your controllers" [doc](https://laravelactions.com/2.x/add-validation-to-controllers.html). We have a Livewire component which provides UI for CRUD of a resource (`Phone`, for example). While Livewire provides `validate()` as...
### Problem Given the following action: ```php class SendTeamReportEmail { use AsAction; public function handle(Team $team, bool $fullReport): void { // ... } } ``` When I'm trying to e.g....
Thanks for the super quick reply! I think that solves my issue, but there might be a secondary one. In every case I've tested in my application, the `$event` parameter...
Having single asController method, and single routes defined in the Action class, how you are handling API / Web endpoints? I see there is two method for handleResponse when request...
Since version `9.35.0` of the Laravel framework, a PR was merged that changed the way controller middleware were resolved which lead to action middleware not being resolved. A follow-up PR...
Hi, I've been testing actions for use with octane and it seems they don't work properly. The first run of an action goes to the html output, and the second...
Hello! From `laravel/framework` 9.35+ actions run `asController` have a regression in behaviour. Controller middleware is not being resolved properly, leading to things like route model binding not working. Due to:...
I'm developing a Laravel package which uses Actions to be used `AsClass` and `AsCommand`. When I try to register the commands in my service provider I get an error: because...
Relevant Article: https://martinjoo.dev/laravel-pipelines Illuminate pipelines look like: ```php app(Pipeline::class) ->send('This is the HTML content of a blog post') ->through([ ModerateContent::class, RemoveScriptTags::class, MinifyHtml::class, ]) ->then(function (string $content) { return Post::create([ 'content'...
@lorisleiva there is a `static::shouldRun()` method, which is a wrapper around `static::mock()->shouldRecieve('handle')` Would you have any reservations to add `shouldExpect()`.. something like: ```php /** * @return Expectation|ExpectationInterface|ExpectsHigherOrderMessage */ public static...