📜  laravel 使用 url - PHP 代码示例

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

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

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

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