The code in this section is adapted from the AdminServiceProvider plugin of the skeleton application (Section ).