A Developer's starter model for Mojolicious Apps.
$self->plugin('AppModel'); my $id = $self->model('users')->add({name => 'Name', email => 'email'}); say $self->users->get($id);
plugin 'AppModel'; my $id = app->model('users')->add({name => 'Name', email => 'email'}); say app->users->get($id);
This plugin will use or generate model classes in these ways: