Blog Detail

16

Aug
Transform your Laravel App to DDD with Laravel Beyond cover image

arrow_back Transform your Laravel App to DDD with Laravel Beyond

Laravel Beyond package is heavily inspired by “Laravel Beyond CRUD” from Spatie. This package will help you with beyond:make commands to easily create classes inside your “Laravel Beyond CRUD” inspired application. We try to implement commands on their original make counterparts as soon as possible.

Installation

You can install laravel-beyond package with the composer.

composer require --dev regnerisch/laravel-beyond

Usage

Commands

beyond:make:action

This command will create a new action class inside your domain.

php artisan beyond:make:action Users/CreateUserAction

beyond:make:builder

This command will create a new eloquent builder class inside your domain.

php artisan beyond:make:builder Users/UserBuilder

beyond:make:collection

This command will create a new collection class inside your domain.

php artisan beyond:make:collection Users/UserCollection

beyond:make:command

This command will create a new command class inside your console application.

php artisan beyond:make:command SyncUsersCommand

beyond:make:controller

This command will create a new action class inside your application.

php artisan beyond:make:controller Admin/Users/UserController

beyond:make:enum

This command will create a new enum class inside your domain.

php artisan beyond:make:enum Users/UserStatusEnum

beyond:make:event

This command will create a new event class inside your application.

php artisan beyond:make:event Users/UserCreatedEvent

beyond:make:request

This command will create a new request class inside your application.

php artisan beyond:make:request Admin/Users/CreateUserRequest

beyond:make:resource

This command will create a new resource class inside your application.

php artisan beyond:make:resource Admin/Users/UserResource

beyond:setup

This command will set up a default Laravel installation into a DDD structure.

php artisan beyond:setup

This package has a lot of useful commands. If you want to dig more, please visit its documentation on Github.

Published at : 16-08-2022

Author : Rizwan Aslam
AUTHOR
Rizwan Aslam

I am a highly results-driven professional with 12+ years of collective experience in the grounds of web application development especially in laravel, native android application development in java, and desktop application development in the dot net framework. Now managing a team of expert developers at Codebrisk.

Launch your project

Launch project