Initial commit - Katica Bufe project
This commit is contained in:
17
app/Models/Forgalom.php
Normal file
17
app/Models/Forgalom.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use App\Models\Kategoria;
|
||||
|
||||
class Forgalom extends Model
|
||||
{
|
||||
protected $table = "forgalom";
|
||||
protected $fillable = ["kiadva"];
|
||||
public $timestamps = false;
|
||||
|
||||
public function kategoria(){
|
||||
return $this->belongsTo(Kategoria::class, "kategoriaId");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user