hipsterjazzbo / Landlord

A simple, single database multi-tenancy solution for Laravel 5.2+
MIT License
614 stars 138 forks source link

Implicit Binding #16

Closed saazrai closed 8 years ago

saazrai commented 8 years ago

This is a great product. But I don't think that this works with Implicit Binding. For eg

Doesn't work public function show(Lead $lead) { return $lead; }

This works: public function show($id) { return Lead::find($id); }

Kindly check

Jmrich commented 8 years ago

What version of laravel are you using? Had a similar problem and I was on 5.1 and upgraded to 5.2. Found out it wasn't hitting the middleware unless it was in the global stack. Not sure if you are running into the same problem