Initial commit - Katica Bufe project

This commit is contained in:
Krisztu
2026-02-19 12:34:28 +01:00
commit 2388451197
66 changed files with 11185 additions and 0 deletions

17
app/Models/Forgalom.php Normal file
View 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");
}
}

18
app/Models/Kategoria.php Normal file
View File

@@ -0,0 +1,18 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use App\Models\Forgalom;
class Kategoria extends Model
{
protected $table = "kategoria";
protected $fillable = ["kategoriaNev"];
public $timestamps = false;
public function forgalom(){
return $this->hasMany(Forgalom::class, "kategoriaId");
}
}

48
app/Models/User.php Normal file
View File

@@ -0,0 +1,48 @@
<?php
namespace App\Models;
// use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
class User extends Authenticatable
{
/** @use HasFactory<\Database\Factories\UserFactory> */
use HasFactory, Notifiable;
/**
* The attributes that are mass assignable.
*
* @var list<string>
*/
protected $fillable = [
'name',
'email',
'password',
];
/**
* The attributes that should be hidden for serialization.
*
* @var list<string>
*/
protected $hidden = [
'password',
'remember_token',
];
/**
* Get the attributes that should be cast.
*
* @return array<string, string>
*/
protected function casts(): array
{
return [
'email_verified_at' => 'datetime',
'password' => 'hashed',
];
}
}