You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
topnotch_website/app/Models/ServiceFile.php

32 lines
678 B
PHTML

3 months ago
<?php
namespace App\Models;
use Database\Factories\ServiceFileFactory;
3 months ago
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
2 months ago
use Illuminate\Database\Eloquent\Relations\HasMany;
3 months ago
use Illuminate\Database\Eloquent\SoftDeletes;
class ServiceFile extends Model
{
/** @use HasFactory<ServiceFileFactory> */
3 months ago
use HasFactory, SoftDeletes;
protected $fillable = [
'code',
'name',
'width',
'height',
'setup_number',
];
/**
2 months ago
* @return HasMany<ProductService>
*/
2 months ago
public function productService(): HasMany
3 months ago
{
2 months ago
return $this->HasMany(ProductService::class);
3 months ago
}
}