for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Xoco70\LaravelTournaments\Models;
class Team extends Fighter
{
protected $table = 'team';
public $timestamps = true;
protected $fillable = ['short_id', 'name', 'championship_id'];
public function competitors()
return $this->belongsToMany(Competitor::class)->withTimestamps();
}
/**
* Get Team Name.
*
* @return mixed|string
*/
public function getNameAttribute()
return ($this->hasAttribute('name')) ? $this->attributes['name'] : '';
* @return null|string
public function getFullName()
return $this->name;
public function hasAttribute($attr)
return array_key_exists($attr, $this->attributes);