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