Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| PriceService | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| scoreTierPrices | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Models; |
| 4 | |
| 5 | use Illuminate\Database\Eloquent\Factories\HasFactory; |
| 6 | use Illuminate\Database\Eloquent\Model; |
| 7 | |
| 8 | class PriceService extends Model |
| 9 | { |
| 10 | use HasFactory; |
| 11 | |
| 12 | protected $table = 'tbl_price_services'; |
| 13 | |
| 14 | protected $fillable = [ |
| 15 | 'name', |
| 16 | 'description', |
| 17 | 'category', |
| 18 | 'unit', |
| 19 | 'is_active', |
| 20 | 'priority', |
| 21 | ]; |
| 22 | |
| 23 | protected $casts = [ |
| 24 | 'is_active' => 'boolean', |
| 25 | ]; |
| 26 | |
| 27 | public function scoreTierPrices() |
| 28 | { |
| 29 | return $this->hasMany(PriceScoreTierService::class, 'service_id'); |
| 30 | } |
| 31 | } |