new database

This commit is contained in:
2021-04-19 09:15:15 +02:00
parent 24663071e6
commit 22a431da07
43 changed files with 423 additions and 302 deletions
+11 -3
View File
@@ -1,14 +1,22 @@
<?php
namespace Backend\Models;
use Illuminate\Database\Eloquent\Model as Eloquent;
class GameData extends Eloquent
{
protected $fillable = [
'game_name', 'game_link', 'is_web_Based', 'description' , "img"
'game_name', 'game_link', 'is_web_Based', 'description', "img"
];
public function group(){
return $this->hasOne(Group::class);
public function registration()
{
return $this->hasOne(Registration::class);
}
public function votes()
{
return $this->hasMany(Vote::class);
}
}