Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 11s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 10s
Gemini PR Review / review (pull_request) Failing after 46s
Laravel Pint / pint (pull_request) Successful in 2m16s
Laravel Larastan / larastan (pull_request) Failing after 2m51s
33 lines
695 B
PHP
33 lines
695 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class AlertMailRule extends Model
|
|
{
|
|
use SoftDeletes;
|
|
|
|
protected $fillable = [
|
|
'module',
|
|
'plant',
|
|
'invoice_master_id',
|
|
'rule_name',
|
|
'email',
|
|
'cc_emails',
|
|
'schedule_type',
|
|
'created_at',
|
|
'updated_at',
|
|
'created_by',
|
|
'updated_by',
|
|
];
|
|
|
|
public function invoiceMaster(): BelongsTo
|
|
{
|
|
return $this->belongsTo(InvoiceMaster::class);
|
|
//return $this->belongsTo(InvoiceMaster::class, 'invoice_master_id');
|
|
}
|
|
}
|