📜  laravel 中的 url - PHP 代码示例

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

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

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

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