Simple function to list all the routes with corresponding path and controller action
Route::get('routes', function() { $routeCollection = Route::getRoutes(); echo "<table >"; echo "<tr>"; echo "<td width='10%'><h4>HTTP Method</h4></td>"; echo "<td width='10%'><h4>Route</h4></td>"; echo "<td width='80%'><h4>Corresponding Action</h4></td>"; echo "</tr>"; foreach ($routeCollection as $value) { echo "<tr>"; echo "<td>" . $value->getMethods()[0] . "</td>"; echo "<td>" . $value->getPath() . "</td>"; echo "<td>" . $value->getActionName() . "</td>"; echo "</tr>"; } echo "</table>"; });
Be the first one to write a response :(
{{ reply.member.name }} - {{ reply.created_at_human_readable }}