Skip to content

Just added my first action and getting a issue with missing namespace #62

Closed Answered by JasperTey
oliwerhelsen asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

I just generated my first action into my project. But I got Trait "Lorisleiva\Actions\Concerns\AsAction" not found . Any idea? Have been following the guide and read the documentation without any luck :(

Hi Oliwer,

By default, the package generates actions based on the lorisleiva/laravel-actions package, which means you need to have that package installed: https://github.com/lorisleiva/laravel-actions - if you don't want to use that package and roll your own, then you'd have to publish the stubs and customize stubs/action.php.stub accordingly.

Same applies to data transfer objects, which rely on the spatie/laravel-data peer dependency unless you customize the ddd.base_dto otherwise.

I…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@oliwerhelsen
Comment options

Answer selected by oliwerhelsen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants