Merge branch 'laravel-12' of http://gitlab.aridia.nl/iridium34/FilamentLaravel into laravel-12

This commit is contained in:
2025-03-15 22:51:29 +01:00
13 changed files with 141 additions and 76 deletions
+29
View File
@@ -0,0 +1,29 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Buildplate extends Model
{
// Buildplate Model
protected $table = 'buildplates';
protected $fillable = [
'name',
'description',
'manufacturer_id',
'temp_max'
];
public function filament()
{
return $this->hasMany(Filament::class);
}
public function manufacturer()
{
return $this->belongsTo(Manufacturer::class);
}
}
+25
View File
@@ -0,0 +1,25 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Extruder extends Model
{
// Extruder Model
protected $table = 'extruders';
protected $fillable = [
'name',
'description',
'manufacturer_id',
'diameter',
'temp_max'
];
public function manufacturer()
{
return $this->belongsTo(Manufacturer::class);
}
}
+7 -1
View File
@@ -19,7 +19,13 @@ class Filament extends Model
'weight',
'diameter',
'price',
'stock'
'finish',
'image',
'stock',
'temp_min',
'temp_max',
'buildplate_id',
'extruder_id'
];
// Filament belongs to a type