Releases: hipsterjazzbo/Landlord
Releases · hipsterjazzbo/Landlord
Support for Laravel 5.5
Updated compatibility to Laravel 5.5 (#72) * Include composer compatibility with laravel 5.5 * Also updated the require-dev * Added package Auto-Discovery. * Fixed autodiscovery for Facade
Deferred Scoping (Beta)
This release attempts to solve scoping issues by deferring scopes when needed. Please add any issues to #50
🚀
Don't allow a NULL tenant id
Previously, if you passed NULL
as a tenant ID, Landlord would accept it happily. This allowed for silent errors like this:
// A global middleware
class TenantScope
{
public function handle($request, Closure $next)
{
// At this point in the request cycle, Auth::user() is NULL
Landlord::addTenant('user_id', Auth::user());
return $next($request);
}
}
Now, Landlord will throw a TenantNullIdException
, alerting you to the fact that you're not actually safely scoped.
Support Laravel 5.4
Merge pull request #59 from gustavobissolli/master Update illuminate to work with Laravel 5.4.*
Fix
- Fixed an issue with
newQueryWithoutTenants
💥 Version 2 💥
See the readme for what's new!
2.0 Beta
See the readme for what's new!
Support Laravel 5.3
v1.0.2 Support Laravel 5.3
Bug fixes
- Fixed the
BelongsToTenant
trait not booting properly - Fixed a few docblocks and README errors
First Release
First release of package with new name and for Laravel 5.2