Laravel version update

Laravel version update
This commit is contained in:
Manish Verma
2018-08-06 18:48:58 +05:30
parent d143048413
commit 126fbb0255
13678 changed files with 1031482 additions and 778530 deletions

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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);
}

View File

@@ -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;

View File

@@ -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;
}