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

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners