Skip to content

mosaiqo/api-consumer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mosaiqo Api Consumer

Enable Hexagonal architecture for Laravel

Installation

	composer require mosaiqo/hexagonal 0.1.*

Add the following provider to your config/app.php in the providers array.

'providers' => [
    ...
    
    /**
     * Package Service Providers...
     */
    Mosaiqo\Hexagonal\Providers\LaravelServiceProvider::class,
    
    ...
];

In each package you should create a routes and a lang folder, like this: The translation files are optional, but the routes are necessary if you are going to extend the Mosaiqo\Hexagonal\Providers\RouteServiceProvider.

Of course you can override the RouteServiceProvider and therefore change the behavior.

- routes
-- web.php
-- api.php
- lang
-- en
--- <your-file>.php
-- es
--- <your-file>.php

TODO

  • UnitTests

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages