1
如果我使用以下命令:laravel 4 - 通過工匠::調用空路由()
Artisan::call('routes')
返回0
我希望能解析走相同的路線,當我運行php artisan routes
出現從CLI。
有沒有人試過這個成功?
如果我使用以下命令:laravel 4 - 通過工匠::調用空路由()
Artisan::call('routes')
返回0
我希望能解析走相同的路線,當我運行php artisan routes
出現從CLI。
有沒有人試過這個成功?
你不需要工匠 - 只需使用路由類本身:
<table>
<tr>
<th>Routes</th>
</tr>
@foreach(Route::getRoutes() as $name => $route)
<tr>
<td>{{ $name }}</td>
</tr>
@endforeach
</table>
好的,謝謝主席先生。 – user2094178
正在尋找,thanx! +1 – Gadoma