Joy Joel
Jan 5, 2024

--

To create a custom module in Laravel 9 or older version you will use nwidart/laravel-modules. nwidart/laravel-modules is a Laravel package used to manage large Laravel apps using modules. A module is similar to a Laravel package, containing views, controllers, or models. This package is supported and tested from Laravel 5+.

- To install the nwidart/laravel-modules package, run this command.

composer require nwidart/laravel-modules

- To create a module under your nwidart/laravel-modules, run this command:

php artisan module:make Customer

The above command will create a Customer module, you can check under Module/customer.

I hope this helps you.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Joy Joel
Joy Joel

Written by Joy Joel

Abba’s Daughter| DevOps Engineer|Technical Writer

Responses (1)

Write a response