for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Arcanedev\LaravelTracker\Models;
/**
* Class Domain
*
* @package Arcanedev\LaravelTracker\Models
* @author ARCANEDEV <[email protected]>
* @property int id
* @property string name
* @property \Carbon\Carbon created_at
* @property \Carbon\Carbon updated_at
* @property \Illuminate\Database\Eloquent\Collection referers
*/
class Domain extends Model
{
/* ------------------------------------------------------------------------------------------------
| Properties
| ------------------------------------------------------------------------------------------------
* The table associated with the model.
* @var string
protected $table = 'domains';
* The attributes that are mass assignable.
* @var array
protected $fillable = ['name'];
* The attributes that should be cast to native types.
protected $casts = [
'id' => 'integer',
];
| Relationships
* Referer relationship.
* @return \Illuminate\Database\Eloquent\Relations\HasMany
public function referers()
return $this->hasMany(
$this->getConfig('models.referer', Referer::class)
);
}