Свойство | Тип | Описание | |
---|---|---|---|
$landlord |
Метод | Описание | |
---|---|---|
allTenants ( ) : |
Returns a new query builder without any of the tenant scopes applied. | |
bootBelongsToTenants ( ) | Boot the trait. Will apply any scopes currently set, and register a listener for when new models are created. | |
findOrFail ( mixed $id, array $columns = ['*'] ) : Illuminate\Database\Eloquent\Collection | |
Override the default findOrFail method so that we can re-throw a more useful exception. Otherwise it can be very confusing why queries don't work because of tenant scoping issues. | |
getTenantColumns ( ) : array | Get the tenantColumns for this model. |
public static allTenants ( ) : |
||
Результат |
public static bootBelongsToTenants ( ) |
public static findOrFail ( mixed $id, array $columns = ['*'] ) : Illuminate\Database\Eloquent\Collection | |
||
$id | mixed | |
$columns | array | |
Результат | Illuminate\Database\Eloquent\Collection | |
public getTenantColumns ( ) : array | ||
Результат | array |