public function findBlogsByURL($url)
    {
        $blog = null;

        $blog = $this->model->where('url', $url)->where('is_published', 1)->where('published_at', '<=', Carbon::now(config('app.timezone'))->format('Y-m-d H:i:s'))->first();

        if (!$blog) {
            $blog = $this->translationRepo->findByUrl($url, 'Grafite\Cms\Models\Blog');
        }

        return $blog;
    }
public function findBlogsByURL($url)
    {
        $blog = null;

        $blog = $this->model->where('url', $url)->where('is_published', 1)->where('published_at', '<=', Carbon::now(config('app.timezone'))->format('Y-m-d H:i:s'))->first();

        if (!$blog) {
            $blog = $this->translationRepo->findByUrl($url, 'Grafite\Cms\Models\Blog');
        }

        return $blog;
    }
public function findBlogsByURL ( $ url ) { $ blog = null ; $ blog = $ this -> model -> where ( 'url' , $ url ) -> where ( 'is_published' , 1 ) -> where ( 'published_at' , '<=' , Carbon :: now ( config ( 'app.timezone' ) ) -> format ( 'Y-m-d H:i:s' ) ) -> first ( ) ; if ( ! $ blog ) { $ blog = $ this -> translationRepo -> findByUrl ( $ url , 'Grafite\Cms\Models\Blog' ) ; } return $ blog ; }
Find Blog by given URL.

@param string $url

@return \Illuminate\Support\Collection|null|static|Pages
Find Blog by given URL .