Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| TblSourceG3wMapping | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| source | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Models; |
| 4 | |
| 5 | use Illuminate\Database\Eloquent\Factories\HasFactory; |
| 6 | use Illuminate\Database\Eloquent\Model; |
| 7 | |
| 8 | class TblSourceG3wMapping extends Model |
| 9 | { |
| 10 | use HasFactory; |
| 11 | |
| 12 | protected $table = 'tbl_source_g3w_mapping'; |
| 13 | |
| 14 | protected $primaryKey = 'id'; |
| 15 | |
| 16 | public $incrementing = false; |
| 17 | |
| 18 | protected $fillable = [ |
| 19 | 'id_g3w', |
| 20 | 'source_name', |
| 21 | 'region' |
| 22 | ]; |
| 23 | |
| 24 | public function source() |
| 25 | { |
| 26 | return $this->belongsTo(TblSources::class, 'source_name', 'name'); |
| 27 | } |
| 28 | |
| 29 | } |