JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr gilour

File "Shipping.php"

Full Path: /home/mipedido/web/mipedido.app/public_html/app/Models/Shipping.php
File size: 550 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Shipping extends Model
{
    protected $fillable = [
        'name',
        'price',
        'location_id',
        'store_id',
        'created_by',
    ];

    private static $getResult = null;

    public function locationName()
    {
        // if (is_null(self::$getResult)) {
            self::$getResult =  Location::whereIn('id',explode(',',$this->location_id))->get()->pluck('name')->toArray();
        // }
        return implode(', ',self::$getResult);
    }
}