mosaiqo/api-consumer

dev-master 2018-02-16 09:42 UTC

This package is auto-updated.

Last update: 2024-04-04 17:57:34 UTC


README

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