AdminArchitect — ActiveAdmin for Laravel

Endi
4 min readAug 5, 2017

--

Finally, I’m very proud to announce AdminArchitect — the new administration framework for Laravel. If you come from a web developers world, probably you’re already familiar with a famous ActiveAdmin — most popular administration framework for Ruby on Rails.

In my opinion Laravel developers must have alternative, and now they do! AdminArchitect shares the main idea and architecture of ActiveAdmin. So, the most popular and useful concepts of ActiveAdmin exists in AdminArchitect out-of-the-box, like:

Smart CRUD, Filters, Scopes, Single & Batch Actions, ACL layer, Exportable collections, Navigation, Eloquent Presenters, Images & Files handling, Multilingual Support, RelationShips, FileManager (Vue.js) and much more…

AdminArchitect doesn’t require you to extend your models, controllers, etc… it even integrates in your existing site like a charm!

Ok, I know, there are a lot of packages designated to build admin panels, like Backpack, Voyager, LaraAdmin, etc… which are very good, so someone can say:

— “Hey, it is just another CRUD builder”, before saying that, let me a chance, maybe you’ll like it! Let’s make a small introduction…

Dashboard

AdminArchitect — Dashboard ScratchPad

Can you imagine any business or corporate site without Dashboard, Analytics, any kind of Metrics, etc…? I can’t, so this might be your “Start here” page. You are free to build any number of widgets of any nature.

Just create a class (php artisan administrator:panel GoogleAnalyticsPanel) that implements a Widgetable interface and register it in a Factory class:

AdminArchitect — Register Dashboard panels

Smart CRUD Generator

AdminArchitect — Index Page

This is how your typical index page might look like. AdminArchitect is smart enough to scaffold your modules based on database scheme:

What to mention here:

  1. Columns Grid: you’re free to change the columns set, order, groups, etc… also the recommended way to customise your columns — to use Presenters .
  2. Filters: generated for each indexed column in your database, AdminArchitect just detects the type of column and builds a form control. Sure you can create your custom filters:
AdminArchitect — Create filter

3. Scopes: generated from Eloquent model scopes. Hide any scope by adding a @hidden flag. Adding your own scope is so easy:

AdminArchitect — Define scopes

4. Single & Batch actions: Along with default CRUD actions, AdminArchitect allows you to perform any action on a single record or a collection of records. You control who is able to perform an action by defining ACL rules.

AdminArchitect - Single action

To create an action, run artisan command:

php artisan administrator:action ToggleUserStatus

Note: add --batch to previous artisan command if you need a batch action.

5. Forms: no comments required — these are just some examples of supported input types. Just think about the fact — AdminArchitect supports 4 WYSIWYG editors:

Tinymce, CkEditor, Medium & Markdown editors.

AdminArchitect — Forms

Add as many controls as your business requires:

AdminArchitect — Creating a form

Conclusion

These are just few AdminArchitect key features. Sincerely hope you’ll like it.

If it will be the case — I’m going to describe other AdminArchitect features in next articles.

Thanks, Enjoy!

--

--

Endi

Senior Web Developer. Laravel and Vue.js addicted.