ok

Mini Shell

Direktori : /proc/thread-self/root/home2/selectio/public_html/limpiar.in.net/install/app/Models/
Upload File :
Current File : //proc/thread-self/root/home2/selectio/public_html/limpiar.in.net/install/app/Models/Carrier.php

<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Carrier extends Model
{
    use HasFactory;

    public function carrier_ranges(){
    	return $this->hasMany(CarrierRange::class);
    }
    
    public function carrier_range_prices(){
    	return $this->hasMany(CarrierRangePrice::class);
    }

    public function scopeActive($query)
    {
        return $query->where('status', 1);
    }
}

Zerion Mini Shell 1.0