Update dependencies, and fix some tests
This commit is contained in:
parent
a48a7eab3a
commit
9e3cc19098
6 changed files with 4352 additions and 1060 deletions
|
@ -64,7 +64,8 @@ class ArticlesController extends Controller
|
|||
*/
|
||||
public function onlyIdInUrl(int $idFromUrl): RedirectResponse
|
||||
{
|
||||
$realId = resolve(Numbers::class)->b60tonum($idFromUrl);
|
||||
$realId = resolve(Numbers::class)->b60tonum((string) $idFromUrl);
|
||||
|
||||
try {
|
||||
$article = Article::findOrFail($realId);
|
||||
} catch (ModelNotFoundException $exception) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue