You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
326 B
22 lines
326 B
5 years ago
|
<?php
|
||
|
|
||
|
namespace App;
|
||
|
|
||
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
||
|
class Data extends Model
|
||
|
{
|
||
|
protected $table='data';
|
||
|
protected $fillable=['name_en','name_fa'];
|
||
|
|
||
|
public function element()
|
||
|
{
|
||
|
return $this->hasOne('App\Element');
|
||
|
}
|
||
|
public function business()
|
||
|
{
|
||
|
return $this->belongsTo('App\Business');
|
||
|
}
|
||
|
|
||
|
}
|