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:
MinionMinion::Guide- <https://minion.pm>
Mojolicious::Guides- <https://mojolicious.org>
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
- fedora 44: perl-Minion 11.0-2.fc44 Β· Artistic-2.0 AND CC-BY-SA-4.0 AND MIT AND ISC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms