findBlogsByURL() public method

Find Blog by given URL.
public findBlogsByURL ( string $url ) : Collection | null | static | Pages
$url string
return Illuminate\Support\Collection | null | static | Pages
コード例 #1
0
ファイル: BlogController.php プロジェクト: YABhq/Quarx
 /**
  * Display the specified Blog.
  *
  * @param int $id
  *
  * @return Response
  */
 public function show($url)
 {
     $blog = $this->blogRepository->findBlogsByURL($url);
     if (empty($blog)) {
         abort(404);
     }
     return view('quarx-frontend::blog.' . $blog->template)->with('blog', $blog);
 }