Add Printers and Printertypes modules with CRUD functionality, migrations, and UI components.

This commit is contained in:
2026-01-24 11:23:37 +01:00
parent 563b0e750e
commit fd61f14ffe
25 changed files with 1017 additions and 4 deletions
+21
View File
@@ -0,0 +1,21 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Printer extends Model
{
// Printer Model
protected $table = 'printers';
protected $primaryKey = 'id';
protected $fillable = [
'name',
'description',
'printertype_id'
];
public function printertype()
{
return $this->belongsTo(Printertype::class);
}
}
+25
View File
@@ -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);
}
}