for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Tinyissue package.
*
* (c) Mohamed Alsharaf <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tinyissue\Model\Traits\Tag;
use Illuminate\Database\Eloquent;
/**
* CountTrait is trait class containing the methods for counting database records for the Tag model.
* @author Mohamed Alsharaf <[email protected]>
* @method Eloquent\Model where($column, $operator = null, $value = null, $boolean = 'and')
trait CountTrait
{
* Count number of tags.
* @return int
public function count()
return $this->where('group', '=', false)->count();
}