I wrote a middleware class that sets a singleton "Context" based upon either a domain or subdomain. This was an untested class and was refactored for testing with some help from @adamwathan (https://gist.github.com/adamwathan/d8dd4ea5337eb3f975b8).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App; | |
use Illuminate\Database\Eloquent\Model; | |
class One extends Model { | |
public function getIdAttribute($value) { |
Aha, congratulations, you are about to enter the magical world that is my personal...
The name's Jonathan. I'm a 29 year old tech-savvy go-getter located in the north-western part of Belgium. Never drank coffee and not too keen on beer, but I am addicted to ridiculously spicy food. When I'm not messing about on a computer you'll usually find me snowboarding or watching a movie with the family.