Laravel version update
Laravel version update
This commit is contained in:
@@ -22,7 +22,7 @@ class Organization extends BaseModel
|
||||
|
||||
public function getUserIds()
|
||||
{
|
||||
$user_relations = $this->userRelation()->lists('user_id')->toArray();
|
||||
$user_relations = $this->userRelation()->pluck('user_id')->toArray();
|
||||
|
||||
return $user_relations;
|
||||
}
|
||||
|
@@ -29,7 +29,7 @@ class Filter extends Model
|
||||
|
||||
public function getTagsByTicketId($ticketid)
|
||||
{
|
||||
$filter = $this->where('key', 'tag')->where('ticket_id', $ticketid)->lists('value')->toArray();
|
||||
$filter = $this->where('key', 'tag')->where('ticket_id', $ticketid)->pluck('value')->toArray();
|
||||
|
||||
return $filter;
|
||||
}
|
||||
|
@@ -32,7 +32,7 @@ class Fields extends BaseModel
|
||||
public function valuesAsString()
|
||||
{
|
||||
$string = '';
|
||||
$values = $this->values()->lists('field_value')->toArray();
|
||||
$values = $this->values()->pluck('field_value')->toArray();
|
||||
if (count($values) > 0) {
|
||||
$string = implode(',', $values);
|
||||
}
|
||||
|
@@ -22,7 +22,7 @@ class SocialMedia extends Model
|
||||
if ($key !== '' && $key !== 'redirect') {
|
||||
$social = $this->where('provider', $provider)->where('key', $key)->first();
|
||||
} elseif ($key !== 'redirect') {
|
||||
$social = $this->where('provider', $provider)->lists('value', 'key')->toArray();
|
||||
$social = $this->where('provider', $provider)->pluck('value', 'key')->toArray();
|
||||
}
|
||||
if (is_object($social)) {
|
||||
$social = $social->value;
|
||||
|
@@ -116,7 +116,7 @@ class Ticket_ThreadOld extends Model
|
||||
public function inlineAttachment($body)
|
||||
{
|
||||
if ($this->attach()->where('poster', 'INLINE')->get()->count() > 0) {
|
||||
$search = $this->attach()->where('poster', 'INLINE')->lists('name')->toArray();
|
||||
$search = $this->attach()->where('poster', 'INLINE')->pluck('name')->toArray();
|
||||
foreach ($this->attach()->where('poster', 'INLINE')->get() as $key => $attach) {
|
||||
$replace[$key] = "data:$attach->type;base64,".$attach->file;
|
||||
}
|
||||
|
Reference in New Issue
Block a user