I am successfully using the following codes to auto-route HTTP parameters to a model in Laravel:
Route::model('user', 'User', function()
{
throw new AccountNotFoundException('Account does not exists.');
});
I recently started using namespaces to my classes and that's where the problem started.
So far, I tried this one to no avail:
Route::model('user', 'PackageName\User\Repository\User', ....blahh....)
Question: How do I specify the namespace on Model routes?