Exemple #1
0
 protected static function usedByBlog(array $data, $content)
 {
     if ($blog = Blog::findViewable($data, $data['blog_id'])) {
         if ($tag = $blog->tags()->where('content', $content)->first()) {
             return $tag;
         }
     }
     return false;
 }