public static function findByAttribute($attribute, $value, $columns = ['*'])
    {
        $model = new static;

        return $model->where($attribute, '=', $value)->first($columns);
    }
public static function findByAttribute($attribute, $value, $columns = ['*'])
    {
        $model = new static;

        return $model->where($attribute, '=', $value)->first($columns);
    }
public static function findByAttribute ( $ attribute , $ value , $ columns = [ '*' ] ) { $ model = new static ; return $ model -> where ( $ attribute , '=' , $ value ) -> first ( $ columns ) ; }
Load the first entity by it's attribute

@param $attribute
@param $value
@param array $columns
@return mixed
Load the first entity by it s attribute