spatie / laravel-multitenancy

Make your Laravel app usable by multiple tenants
https://spatie.be/docs/laravel-multitenancy
MIT License
1.08k stars 154 forks source link

Update Multitenancy.php #465

Closed 1cbyc closed 1 year ago

1cbyc commented 1 year ago

I simplified the 'configureRequests()' method by removing the if statement. I also added a null coalescing operator (??) to avoid unnecessary if statements. I also felt adding type hints to the method arguments and return types are cute to read.

masterix21 commented 1 year ago

Hi @1cbyc, thanks for your time on it, but I prefer the current code.