added things

This commit is contained in:
szabomarton
2025-03-10 13:58:21 +01:00
parent 33371852e0
commit c4f2c7fbcb
127 changed files with 20894 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
<?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');
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class kategoria extends Model
{
//
protected $fillable = ['nev'];
protected $table = "kategoriak";
public function ingatlanok(){
return $this->hasMany(ingatlan::class,
"kategoria");
}
}