ok

Mini Shell

Direktori : /home2/selectio/public_html/limpiar.in.net/updates/app/Models/
Upload File :
Current File : /home2/selectio/public_html/limpiar.in.net/updates/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