This commit is contained in:
2020-09-04 00:38:41 +05:00
parent 3a26f78363
commit fd8a4f01d1
8 changed files with 16 additions and 14 deletions

View File

@@ -12,10 +12,12 @@ class ArticlesController extends Controller
*
* @param mixed $article
*/
public function show(Article $article)
public function show($source, $guid)
{
return view('articles.show', [
'article' => $article
'article' => Article::whereHas('source', function($q) use ($source) {
$q->where('slug', $source);
})->where('guid', $guid)->get()->first()
]);
}
}