for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Arcanedev\LaravelTracker\Models;
use Arcanedev\LaravelTracker\Contracts\Models\Route as RouteContract;
use Arcanedev\LaravelTracker\Support\BindingManager;
/**
* Class Route
*
* @package Arcanesoft\Tracker\Models
* @author ARCANEDEV <[email protected]>
* @property int id
* @property string name
* @property string action
* @property \Carbon\Carbon created_at
* @property \Carbon\Carbon updated_at
* @property \Illuminate\Database\Eloquent\Collection paths
*/
class Route extends AbstractModel implements RouteContract
{
/* -----------------------------------------------------------------
| Properties
| -----------------------------------------------------------------
* The table associated with the model.
* @var string
protected $table = 'routes';
* The attributes that are mass assignable.
* @var array
protected $fillable = ['name', 'action'];
| Relationships
* Paths relationship.
* @return \Illuminate\Database\Eloquent\Relations\HasMany
public function paths()
return $this->hasMany(
$this->getModelClass(BindingManager::MODEL_ROUTE_PATH, RoutePath::class)
);
}