Support the ongoing development of Laravel.io →
Configuration Mail Queues
Last updated 2 years ago.
0

This is a very dirty way of doing it. Config files are suppose to be static. These values are constants and should not change on run time.

To achieve what you need i think it's better to write a service rather than using a middleware. The service shall set all the configuration for the current tenant when initialized.

0

So, basically If a create a JobServiceProvider will be enough, but I don't know exactly how to do it. It's possible you help me out? Make a example or anything like that?

0

i made a similar system using this tutorial http://culttt.com/2014/03/31/multi-tenancy-laravel-4/ hope it helps

0

Sign in to participate in this thread!

Eventy

Your banner here too?

amandiobm amandiobm Joined 30 Dec 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.