Yab\Quarx\Repositories\BlogRepository::findBlogsByTag PHP Method

findBlogsByTag() public method

Find Blogs by given Tag.
public findBlogsByTag ( string $tag ) : Collection | null | static | Pages
$tag string
return Illuminate\Support\Collection | null | static | Pages
    public function findBlogsByTag($tag)
    {
        return Blog::where('tags', 'LIKE', "%{$tag}%")->where('is_published', 1)->get();
    }