davidhoeck / laravel-modular
Adds the support of a modular approach to Laravel.
1.3.1
2017-02-27 22:53 UTC
Requires
- php: >=5.4.0
- dingo/api: *
- laravel/framework: >=5.1
This package is not auto-updated.
Last update: 2024-10-26 20:04:30 UTC
README
Adds the support of a modular approach to Laravel 5.
Agenda
- Installation
- Get started
- Using Laravel Modular
Installation
The easiest and common way is to install the package via Composer.
Add this line to your composer.json
"davidhoeck/laravel-modular": "dev-master"
or paste this line into your terminal.
composer require "davidhoeck/laravel-modular"
Add the following line to your config/app.php
under the section providers
DavidHoeck\LaravelModular\ModuleServiceProvider::class
Get Started
Generate a new module with
php artisan make:module <module-name>
*** Optional Flags ***
Generate with a base Controller
php artisan make:module <module-name> --with-controller
Generate with a base Model
php artisan make:module <module-name> --with-model