Add Spareparts module with CRUD functionality and UI components.

This commit is contained in:
2026-01-24 10:15:45 +01:00
parent af0cf8bed9
commit 563b0e750e
18 changed files with 502 additions and 9 deletions
+20
View File
@@ -0,0 +1,20 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Sparepart extends Model
{
// Sparepart Model
protected $table = 'spareparts';
protected $primaryKey = 'id';
protected $fillable = [
'name',
'description',
];
public function manufacturer()
{
return $this->belongsTo(Manufacturer::class);
}
}