Skip to content

Commit

Permalink
Пагинация экземпляров
Browse files Browse the repository at this point in the history
  • Loading branch information
delaynore committed Jun 10, 2024
1 parent 4754f02 commit 067cd9a
Show file tree
Hide file tree
Showing 2 changed files with 188 additions and 86 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/ConceptController.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function store(Request $request, string $dictionaryId)
/**
* Display the specified resource.
*/
public function show(string $dictionary, string $concept)
public function show(string $dictionary, string $concept, int $page = 0)
{
$concept = Concept::findOrFail($concept);
$dictionary = Dictionary::findOrFail($dictionary);
Expand Down Expand Up @@ -111,7 +111,7 @@ public function show(string $dictionary, string $concept)
]);
}

return view('concept.show', compact('concept', 'dictionary', 'concepts', 'conceptRelations'));
return view('concept.show', compact('concept', 'dictionary', 'concepts', 'conceptRelations', 'page'));
}

/**
Expand Down
Loading

0 comments on commit 067cd9a

Please sign in to comment.