Mojolic...::Admin(3)

πŸ’– Mojolicious::Plugin::Minion::Admin β€” the manual, but make it cute πŸ’–

okay bestie, welcome to the Mojolicious::Plugin::Minion::Admin page, straight outta the User Contributed Perl Documentation corner of the Mojolic...::Admin(3) manual. grab a strawberry πŸ“ and let's get into it.


✨ NAME ✨

Mojolicious::Plugin::Minion::Admin β€” it's an Admin UI, periodt. πŸ‘‘


✨ SYNOPSIS ✨

the whole vibe, in code:

# Mojolicious
$self->plugin('Minion::Admin');

# Mojolicious::Lite
plugin 'Minion::Admin';

# Secure access to the admin ui with Basic authentication
my $under = $self->routes->under('/minion' =>sub ($c) {
  return 1 if $c->req->url->to_abs->userinfo eq 'Bender:rocks';
  $c->res->headers->www_authenticate('Basic');
  $c->render(text => 'Authentication required!', status => 401);
  return undef;
});
$self->plugin('Minion::Admin' => {route => $under});

like… look at that last bit. secure access to the admin ui with Basic authentication?? we love a girl who locks her door πŸ”. and yes, the password is literally Bender:rocks in the example, no cap.


✨ DESCRIPTION ✨

Mojolicious::Plugin::Minion::Admin is a Mojolicious plugin that hands you an admin ui for the Minion job queue. that's it. that's the whole thing. your jobs get a whole little dashboard moment. main character energy for your background workers fr fr πŸ’…


✨ OPTIONS ✨

Mojolicious::Plugin::Minion::Admin supports the following options. there's only two, we're keeping it lowkey.

🌸 return_to

# Mojolicious::Lite
plugin 'Minion::Admin' => {return_to => 'some_route'};

this is the name of a route, or just a path, that you get yeeted back to when you leave the admin ui. it defaults to "/" β€” so if you don't say anything, home is where the heart is πŸ πŸ’–

🌸 route

# Mojolicious::Lite
plugin 'Minion::Admin' => {route => app->routes->any('/admin')};

you hand it a Mojolicious::Routes::Route object and the admin ui attaches itself there. if you don't pass one? it just generates a brand new route with the prefix "/minion" all by itself. self-sufficient queen ✨


✨ METHODS ✨

Mojolicious::Plugin::Minion::Admin inherits all methods from Mojolicious::Plugin (every single one, it's giving nepotism but make it inheritance) and implements the following new ones.

πŸ¦‹ register

$plugin->register(Mojolicious->new);

register the plugin in a Mojolicious application. that's the move. 🫢


✨ SEE ALSO ✨

go read these next bestie, they're all iconic:


and that's the page!! πŸ’œ this was perl v5.42.0, dated 2026-01-17, from the User Contributed Perl Documentation, and it ate, no crumbs left. byeee, go queue some jobs πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from