Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Latest commit

 

History

History
17 lines (10 loc) · 1.06 KB

route-action-icons.md

File metadata and controls

17 lines (10 loc) · 1.06 KB

Route Action Icons

Some methods in your controllers are special, as they handle incoming HTTP requests. They have a certain path and middleware attached to them, which is not directly obvious without context. Laravel Make marks methods registered as route actions with a small gutter icon:

This makes them stand out from normal methods that might be present on your controller classes. As a bonus, you can hover over an icon to see related information:

  • the HTTP verb
  • the URL path pointing to that endpoint
  • additional middleware applied to the route

If you don't like the icons, they can be disabled in the settings under "Editor > General > Gutter Icons > Laravel Make".

Notes

This feature is still relatively new, so some things might work as reliable as other features of this plugin. The data used to display the icons is the same one as used for the routes tab in the Laravel tool window, so the same restrictions and possible staleness of the data applies.