Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
39 lines (34 sloc)
881 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Illuminate\Contracts\Routing; | |
interface UrlRoutable | |
{ | |
/** | |
* Get the value of the model's route key. | |
* | |
* @return mixed | |
*/ | |
public function getRouteKey(); | |
/** | |
* Get the route key for the model. | |
* | |
* @return string | |
*/ | |
public function getRouteKeyName(); | |
/** | |
* Retrieve the model for a bound value. | |
* | |
* @param mixed $value | |
* @param string|null $field | |
* @return \Illuminate\Database\Eloquent\Model|null | |
*/ | |
public function resolveRouteBinding($value, $field = null); | |
/** | |
* Retrieve the child model for a bound value. | |
* | |
* @param string $childType | |
* @param mixed $value | |
* @param string|null $field | |
* @return \Illuminate\Database\Eloquent\Model|null | |
*/ | |
public function resolveChildRouteBinding($childType, $value, $field); | |
} |