for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Arcanedev\LaravelTracker\Models;
/**
* Class RoutePath
*
* @package Arcanesoft\Tracker\Models
* @author ARCANEDEV <[email protected]>
* @property int id
* @property int route_id
* @property string path
* @property \Carbon\Carbon created_at
* @property \Carbon\Carbon updated_at
* @property \Arcanedev\LaravelTracker\Models\Route route
* @property \Illuminate\Database\Eloquent\Collection parameters
*/
class RoutePath extends AbstractModel
{
/* ------------------------------------------------------------------------------------------------
| Properties
| ------------------------------------------------------------------------------------------------
* The table associated with the model.
* @var string
protected $table = 'route_paths';
* The attributes that are mass assignable.
* @var array
protected $fillable = ['route_id', 'path'];
* The attributes that should be cast to native types.
protected $casts = [
'route_id' => 'integer',
];
| Relationships
* Route relationship.
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
public function route()
return $this->belongsTo(
$this->getModelClass(self::MODEL_ROUTE, Route::class)
);
}
* Parameters relationship.
* @return \Illuminate\Database\Eloquent\Relations\HasMany
public function parameters()
return $this->hasMany(
$this->getModelClass(self::MODEL_ROUTE_PATH_PARAMETER, RoutePathParameter::class)