first commit
This commit is contained in:
21
app/Models/EpbtEcasResit.php
Normal file
21
app/Models/EpbtEcasResit.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class EpbtEcasResit extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $connection = 'second_mysql';
|
||||
protected $table = 'ecas_resit';
|
||||
protected $primaryKey = 'noresit';
|
||||
public $incrementing = false;
|
||||
protected $keyType = 'string';
|
||||
|
||||
public function resitItems(){
|
||||
return $this->hasMany(EpbtEcasResitItem::class, 'noresit','noresit');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user