2017-09-07 34 views

回答

2

Request對象有一個返回all segments功能,放置在一個count()讓你尋求數:

$totalSegsCount = count(Request::segments());

+0

aaahh它正在工作thx –

+0

然後請將此答案標記爲已接受^ – Quezler