本文整理汇总了PHP中Route::getParameter方法的典型用法代码示例。如果您正苦于以下问题:PHP Route::getParameter方法的具体用法?PHP Route::getParameter怎么用?PHP Route::getParameter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Route
的用法示例。
在下文中一共展示了Route::getParameter方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: find
public function find(Route $route)
{
$this->bairro = Bairro::find($route->getParameter(''));
}
示例2: find
public function find(Route $route)
{
$this->service = Service::findOrFail($route->getParameter('services'));
}
示例3: find
public function find(Route $route)
{
$this->note = Citas::find($route->getParameter('Citas'));
}
示例4: find
public function find(Route $route)
{
$this->distrito = Distrito::find($route->getParameter('distrito'));
}
示例5: find
public function find(Route $route)
{
$this->morosos = User::find($route->getParameter('morosos'));
}
示例6: find
public function find(Route $route)
{
$this->pizza = Pizza::find($route->getParameter('pizza'));
}
示例7: find
public function find(Route $route)
{
$this->viaje = Viaje::find($route->getParameter('viaje'));
}
示例8: find
public function find(Route $route)
{
$this->sections = User::find($route->getParameter('sections'));
}
示例9: testGetParameter
/**
*/
public function testGetParameter()
{
$this->assertInstanceOf('\\Fwk\\Core\\Components\\UrlRewriter\\RouteParameter', $this->object->getParameter('name'));
$this->setExpectedException('\\Fwk\\Core\\Components\\UrlRewriter\\Exception');
$this->object->getParameter('unknown');
}