brianwebb01 / hexagonal-laravel-experiment Goto Github PK
View Code? Open in Web Editor NEWExperimentation with hexagonal architecture for Laravel / PHP
Experimentation with hexagonal architecture for Laravel / PHP
I like this concept of doing things.
So I've been recreating it (Learn better when typing it out).
But once I hit the tests it seem to fail.
First on missing dependencies (mockery and factory from jeffrey), so added them to the composer.json file.
But now I get Fatal error: Class 'Eloquent' not found in /var/www/tests/hexagonal-laravel-experiment/app/models/Order.php on line 5
I'm guessing it's the $this->mock = m::mock('Eloquent', 'Order');
in the OrdersTest.php
file.
But as I'm pretty new to TDD; I figured to say it here before I started tinkering.
Also added a travis-ci file, but that's irrelevant still.
https://travis-ci.org/XoneFobic/hexagonal-laravel-experiment
Even with the test failing. Nice work so far, I'll see if I can implement it in my current project
Is there any reason this wouldn't work with Laravel 5 as is? I think that it will but could see some benefit from validation through Requests
and possibly route model binding?
Would these or other new things fit into the hexagonal structure? am I confused?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.