Package development

At the moment, custom packages are not yet supported, but if you wanna build an official package, make sure to follow the standards found on any of the current package found at the Laralum repository:

https://github.com/Laralum

Injections

To inject code into diferent parts of laralum as a module, you'll need to create a folder in your package:

src/Injectors/

Inside this folder you'll need to place all the injections you want to make inside.

The list of the currently supported injectors is:

  • style (style.php) This will inject the php code inside style.php under the specified directory inside the header of the master template inside the administration panel.

  • script (script.php) This will inject the php code inside script.php under the specified directory before the end of the <body> tag in the master template inside the administration panel.

  • laralum.base (laralum.base.php) This will inject the php code inside laralum.base.php inside the laralum.base middleware used across all the administration panel.

  • laralum.auth (laralum.auth.php) This will inject the php code inside laralum.auth.php inside the laralum.auth middleware used across all the administration panel.

  • user (user.php) This will inject the php array that is returned in user.php inside the user menu on the admin panel.

Did you know?

Laralum is translated with aitor24/laralang, a translation package able to autogenerate php translations files.


Donations

Please consider donating if you liked the project, we currently have no funding and we're spending a lot of time maintaining and developing this project.


The creators

Èrik Campobadal Forés

Aitor Riba Archilla


Major Contributors

Krishan König

Laraketai

Snow McFox