Looking to hire Laravel developers? Try LaraJobs

laravel-dod maintained by sontx

Description
Artisan to make: repositoty, action, dto, view model, service, .etc.
Last update
2025/05/06 08:59 (dev-master)
License
Links
Downloads
115

Comments
comments powered by Disqus

Laravel Domain Oriented Design

Laravel Domain Oriented Design is simple to make:

  • Action
  • Repository
  • View Model
  • Data Transfer Object
  • Service

Installing

The recommended way to install Laravel DOD is through Composer.

composer require sontx/laravel-dod

Docs

Make Action.

php artisan make:action myAction

Make Repositoty.

php artisan make:repositoty myRepositoty

Make Repositoty without extend model

php artisan make:repositoty myRepositoty --no-model

Make DataTransferObject.

php artisan make:dto myDataTransferObject

Make Service.

php artisan make:service myService

Make ViewModel.

php artisan make:view-model myViewModel

Publish config.

php artisan vendor:publish --tag=laravel-dod-config