Open booni3 opened 5 years ago
The tenant scope is not applied when instantiating the model as follows:
class OrderController extends Controller { protected $order; public function __construct(Order $order) { $this->order = $order; } ...
but...
Order::all() // works fine
This is not a huge issue, when you know this is the case, but does anyone know why or of any work arounds to it?
Maybe you can move the \Illuminate\Routing\Middleware\SubstituteBindings::class away from the global middleware and set it after your Landlord middleware.
The tenant scope is not applied when instantiating the model as follows:
but...
This is not a huge issue, when you know this is the case, but does anyone know why or of any work arounds to it?