如何在laravel routes.php里获取控制器和action名称
1个回答
展开全部
#laravel/vendor/laravel/framework/src/Illuminate/Routing/Router.php
#概Line-1585
/**
* Get the current route name.
*
* @return string|null
*/
public function currentRouteName()
{
return ($this->current()) ? $this->current()->getName() : null;
}
#概Line-1585
/**
* Get the current route name.
*
* @return string|null
*/
public function currentRouteName()
{
return ($this->current()) ? $this->current()->getName() : null;
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询