for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Jiemoon\ChineseSlug;
use Illuminate\Support\Facades\DB;
class ChineseSlugRepository implements ChineseSlugInterface
{
public function getCountOfMatchingSlugs($table, $column, $slug)
return DB::table($table)->where($column, 'LIKE', $slug.'%')->count();
}