📜  laravel 使用名称获取 url - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:44.408000             🧑  作者: Mango

代码示例3
$url = route('routeName');

//if there is a param:
$url = route('routeName', ['id' => 1]);

https://laravel.com/docs/5.1/helpers#method-route