Premier commit
This commit is contained in:
25
app/Models/ContractMeta.php
Normal file
25
app/Models/ContractMeta.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class ContractMeta extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'contract_meta'; // singular/plural convention can be tricky if not explicit
|
||||
|
||||
protected $fillable = [
|
||||
'contract_id',
|
||||
'key',
|
||||
'value',
|
||||
];
|
||||
|
||||
public function contract(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Contract::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user