Add Printers and Printertypes modules with CRUD functionality, migrations, and UI components.
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user