Laravel-Modular
Laravel Modular helps to make your application modular. Often happens that our applications grow a lot and we need a lot of models, resources, controllers, migrations etc.. With this package we can divide our parts in little chunks (or modules).
Loading modules using PSR-4 standard automatically
Install
To install through Composer, by run the following command:
composer require idel/laravel-modular
The package will automatically register a service provider and alias.
Optionally, publish the package’s configuration file by running:
php artisan vendor:publish --provider="Idel\Modular\ServiceProvider"
Pages Link
Generators
- Creating a module
- Creating a Model(Entity)
- Creating a Controller
- Creating a router
- Creating a config
- Creating a migration
- Creating a event
- Creating a job
- Creating a language(json)
- Creating a listener
- Creating a mail
- Creating a middleware
- Creating a notification
- Creating a observer
- Creating a policy
- Creating a provider
- Creating a request
- Creating a test
- Creating a helper file
Actions
- Optimize modules
- How to register storage disk
- Register blade files
- How to disable module
- How to enable module
- Migrate the given module or migrate all modules
- Refresh the migration
- Reset the migration
- Rollback the given module or rollback all modules.
- How to modularize Laravel Nova
Nova Generators
- Creating a nova resource
- Creating a nova action
- Creating a nova card
- Creating a nova dashboard
- Creating a nova field
- Creating a nova filter
- Creating a nova lens
- Creating a nova partition
- Creating a nova value
Directory Structure
Using Artisan commands, files and folders are created according to your needs.
So we’ll have a structure like this :
- modules
- routes
- database
- migrations
- languages
- resources
- js
- views
- src
- Providers
- Entities
- Http
- Controllers
- Middleware
- Requests
- Exceptions
- Jobs
- Mails
- Casts
- Observers
- Facades
- Traits
- Events
- Listeners
- Tests
- Console
Default structure with files :
- modules
- src
- Providers
- ServiceProvider.php
- Providers
- info.json
- src
To Do
- Update Document.
- Add Test Files.
- Improving Performance.
- Cache System.
- Public Folder Support In Each Module.
Contact us
oeslami32@gmail.com
omeslami32@gmail.com
idel327327@gmail.com