26 lines
481 B
PHP
26 lines
481 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Printertype extends Model
|
|
{
|
|
// Printertype Model
|
|
protected $table = 'printertypes';
|
|
protected $primaryKey = 'id';
|
|
protected $fillable = [
|
|
'name',
|
|
'description',
|
|
'bed_size_x',
|
|
'bed_size_y',
|
|
'temp_min',
|
|
'temp_max',
|
|
'price',
|
|
];
|
|
public function manufacturer()
|
|
{
|
|
return $this->belongsTo(Manufacturer::class);
|
|
}
|
|
}
|