Backend/20250130/13ingatlan/app/Models/ingatlan.php
2025-03-10 13:58:21 +01:00

19 lines
361 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class ingatlan extends Model
{
//
protected $fillable = ['kategoria', 'leiras', 'hirdetesDatuma', 'tehermentes', 'ar', 'kepUrl'];
protected $table = "ingatlanok";
public function kategoria(){
return $this->belongsTo(kategoria::class,
'kategoria');
}
}