findBlogsByURL() public méthode

Find Blog by given URL.
public findBlogsByURL ( string $url ) : Collection | null | static | Pages
$url string
Résultat Illuminate\Support\Collection | null | static | Pages
Exemple #1
0
 /**
  * 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);
 }