Originally posted @ https://codeanddeploy.com visit and download the sample code: https://codeanddeploy.com/blog/laravel/how-to-implement-laravel-modules-structure-with-nwidart-package In this post, I will show you how to implement Laravel modules structure in with Nwidart package.

Some developers recommend implementing a Laravel modules because it comes with own controllers, model, resources and more.

Then run the following command to create module let's do an example for Posts module.

See below Laravel module structures: app/ bootstrap/ vendor/ Modules/ ├── Posts/ ├── Assets/ ├── Config/ ├── Console/ ├── Database/ ├── Migrations/ ├── Seeders/ ├── Entities/ ├── Http/ ├── Controllers/ ├── Middleware/ ├── Requests/ ├── Providers/ ├── PostsServiceProvider.php ├── RouteServiceProvider.php ├── Resources/ ├── assets/ ├── js/ ├── app.js ├── sass/ ├── app.scss ├── lang/ ├── views/ ├── Routes/ ├── api.php ├── web.php ├── Repositories/ ├── Tests/ ├── composer.json ├── module.json ├── package.json ├── webpack.mix.js
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners