for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* rmarchiv.tk
* (c) 2016-2017 by Marcel 'ryg' Hering
*/
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
/**
* Class LogoVote.
*
* @property int $id
* @property int $logo_id
* @property int $user_id
* @property int $up
* @property int $down
* @property string $deleted_at
* @property \Carbon\Carbon $created_at
* @property \Carbon\Carbon $updated_at
* @property-read \App\Models\User $user
* @property-read \App\Models\Logo $logo
* @method static \Illuminate\Database\Query\Builder|\App\Models\LogoVote whereId($value)
* @method static \Illuminate\Database\Query\Builder|\App\Models\LogoVote whereLogoId($value)
* @method static \Illuminate\Database\Query\Builder|\App\Models\LogoVote whereUserId($value)
* @method static \Illuminate\Database\Query\Builder|\App\Models\LogoVote whereUp($value)
* @method static \Illuminate\Database\Query\Builder|\App\Models\LogoVote whereDown($value)
* @method static \Illuminate\Database\Query\Builder|\App\Models\LogoVote whereDeletedAt($value)
* @method static \Illuminate\Database\Query\Builder|\App\Models\LogoVote whereCreatedAt($value)
* @method static \Illuminate\Database\Query\Builder|\App\Models\LogoVote whereUpdatedAt($value)
* @mixin \Eloquent
* @property-read \Illuminate\Database\Eloquent\Collection|\Venturecraft\Revisionable\Revision[] $revisionHistory
class LogoVote extends Model
{
use \Venturecraft\Revisionable\RevisionableTrait;
protected $table = 'logo_votes';
public $timestamps = true;
protected $fillable = [
'logo_id',
'user_id',
'up',
'down',
];
protected $guarded = [];
public function user()
return $this->hasOne('App\Models\User');
}
public function logo()
return $this->hasOne('App\Models\Logo');