Coder Social home page Coder Social logo

modules-laravel's Introduction

Modules for applications based on laravel 5.*

Install

composer require pablolovera/modules-laravel

Add ServiceProvider on config/app.php

PabloLovera\ModulesLaravel\Providers\ModulesServiceProvider::class,

Publish config

php artisan vendor:publish --provider="PabloLovera\ModulesLaravel\Providers\ModulesServiceProvider"

How to use...

First step (IMPORTANT)

Create the Core module. It's very important!

php artisan module:make-core

Then... see the directory app/Core/

Create the other modules...

php artisan make:module <module-name>

Then... see the directory app/Modules/<module-name>

Commands available

php artisan ...

Create Module
make:module <module-name>

So... created in app/Modules/<module-name>

When a new module is created, you need add provider in config/app.php, like a App\Modules\<module-name>\Providers\<module-name>ServiceProvider::class,

Create Controller for existing module
module:make-controller <controller-name> <module-name>

So... created in app/Modules/<module-name>/Http/Controllers/<controller-name>

Create Model for existing module
module:make-model <model-name> <module-name>

So... created in app/Modules/<module-name>/Models/<model-name>

Create Request for existing module
module:make-request <request-name> <module-name>

So... created in app/Modules/<module-name>/Http/Requests/<request-name>

Create Seeder for existing module
module:make-seeder <seeder-name> <module-name>

So... created in app/Modules/<module-name>/Database/seeds/<seeder-name>

Create Migration for existing module
module:make-migration <migration-name> <module-name>

So... created in app/Modules/<module-name>/Database/migrations/<migration-name>

Executing Migration for existing module
module:migrate <module-name>

or

module:migrate <module-name> --seed
Create Service Provider for existing module
module:make-service-provider <service-provider-name> <module-name>

So... created in app/Modules/<module-name>/Providers/<service-provider-name>

Create Transformer for existing module
module:make-transformer <transformer-name> <module-name>

So... created in app/Modules/<module-name>/Transformers/<transformer-name>

Create Input View for existing module
module:make-view-dados <module-name>

So... created in app/Modules/<module-name>/Views/<view-name>

Create List View for existing module
module:make-view-lista <module-name>

So... created in app/Modules/<module-name>/Views/<view-name>

Licence

MIT Licence

modules-laravel's People

Contributors

pablolovera avatar

Stargazers

 avatar José Cage  avatar JC Bagtas avatar LogikIO avatar

Watchers

James Cloos avatar  avatar JC Bagtas avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.