logo, improved listing, some helpers, mail confirms table, confirmed flag, user title column..
This commit is contained in:
@@ -22,7 +22,8 @@ class AppServiceProvider extends ServiceProvider
|
||||
\Route::bind('user', function ($value) {
|
||||
$u = User::where('name', $value)->first();
|
||||
// it may also be the _id directly
|
||||
if (!$u) $u = User::find($value);
|
||||
if (!$u && is_numeric($value)) $u = User::find((int)$value);
|
||||
if (!$u) abort(404);
|
||||
return $u;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user