wip fix
This commit is contained in:
1 parent
9bcd4432c6
commit
6f92f9e1d5
1209 files changed
+220940
No files matched your search
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class ElementProvider extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'sport_id',
|
||||
'element_id',
|
||||
'provider_id',
|
||||
'provider_element_id',
|
||||
'add_by_method_id',
|
||||
'name',
|
||||
];
|
||||
|
||||
public function sport()
|
||||
{
|
||||
return $this->belongsTo(Sport::class);
|
||||
}
|
||||
|
||||
public function element_group()
|
||||
{
|
||||
return $this->belongsTo(ElementGroup::class, 'element_id', 'element_id');
|
||||
}
|
||||
|
||||
public function element()
|
||||
{
|
||||
return $this->belongsTo(Element::class);
|
||||
}
|
||||
|
||||
public function provider()
|
||||
{
|
||||
return $this->belongsTo(Provider::class);
|
||||
}
|
||||
|
||||
public function add_by_method()
|
||||
{
|
||||
return $this->belongsTo(AddByMethod::class);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user