I'm trying to find a model either by its ID or unique ID string (not the primary key) with type hinting, so I don't repeat lines for finding inside the controller.
Imagine that I have a class called Activity and I have a route:
Route::get('activities/{id}', 'activityController@view');
And in the Controller
public function View(Activity $id){}...
How does the Service container resolve $id? I've overridden the find() and findOrFail() methods of the model, and it doesn't return the model with type hinting alone.