PHPackages                             label305/auja-laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. label305/auja-laravel

AbandonedArchivedLibrary[Admin Panels](/categories/admin)

label305/auja-laravel
=====================

Library to setup Auja for a Laravel 4 or 5 application. Auja is an easy-to-use, easy-to-implement admin interface for managing your data.

v3.0.0-alpha2(11y ago)91942[1 issues](https://github.com/Label305/Auja-Laravel/issues)Apache-2.0PHPPHP &gt;=5.4.0

Since Dec 16Pushed 9y ago8 watchersCompare

[ Source](https://github.com/Label305/Auja-Laravel)[ Packagist](https://packagist.org/packages/label305/auja-laravel)[ Docs](https://github.com/Label305/Auja-Laravel)[ RSS](/packages/label305-auja-laravel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (11)Versions (3)Used By (0)

Auja for Laravel
================

[](#auja-for-laravel)

**Deprecated**

This repo will no longer be maintained and will be deleted in the start of 2017.

**About**

[![Build Status](https://camo.githubusercontent.com/ed4609aafd6c0e63d94c34c7b9f77223b52500f0176692c827bd67356aebf2e4/68747470733a2f2f7472617669732d63692e6f72672f4c6162656c3330352f41756a612d4c61726176656c2e7376673f6272616e63683d646576)](https://travis-ci.org/Label305/Auja-Laravel)[![Coverage Status](https://camo.githubusercontent.com/db74547159775d770b0a811b81867c052a26424fd646970475ad5afa63d580e9/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f4c6162656c3330352f41756a612d4c61726176656c2f62616467652e706e673f6272616e63683d646576)](https://coveralls.io/r/Label305/Auja-Laravel?branch=dev)[![Dependency Status](https://camo.githubusercontent.com/730dd57df8b9b16e9447c229b1f31a8e25f9bd2fb7839ba7a94d0cef07de75a8/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3534383939316436373436656235336661373030303332652f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/548991d6746eb53fa700032e)[![Latest Stable Version](https://camo.githubusercontent.com/50c473e5478bccc5d7e7686358501db46fde7715d278ec9fc0bd70aca47a0aa2/68747470733a2f2f706f7365722e707567782e6f72672f6c6162656c3330352f61756a612d6c61726176656c2f762f737461626c652e737667)](https://packagist.org/packages/label305/auja-laravel)[![Total Downloads](https://camo.githubusercontent.com/697c72c891cf748c8bed5fade78bd9268f3d41d6645c0679660cf9d7f7b011f6/68747470733a2f2f706f7365722e707567782e6f72672f6c6162656c3330352f61756a612d6c61726176656c2f646f776e6c6f6164732e737667)](https://packagist.org/packages/label305/auja-laravel)[![Latest Unstable Version](https://camo.githubusercontent.com/d92fd7fdf239f76266267bc8ddd692a4c934552b20572a64da02eaca22116962/68747470733a2f2f706f7365722e707567782e6f72672f6c6162656c3330352f61756a612d6c61726176656c2f762f756e737461626c652e737667)](https://packagist.org/packages/label305/auja-laravel)

Auja is an easy-to-use, easy-to-implement admin interface. It provides an easy and intuitive way for you to view and manipulate your data, so you can focus on more important matters. Auja is designed to be both user-friendly *and* developer-friendly by providing you with tools to setup your admin interface in a couple of minutes.

The [Auja javascript frontend](https://github.com/Label305/Auja) provides the graphical user interface. To determine its content, it relies on a JSON web-service you implement. [Auja-PHP](https://github.com/Label305/Auja-PHP) in turn, provides an Object Oriented approach to provide these JSON messages from a PHP application. In this repository you will find a Laravel implementation which you can use to setup Auja for your Laravel project.

[![Auja Screenshot](https://camo.githubusercontent.com/b8fcedab51127559bc71804581d158abaab1983d17b34211dc2c889e66a1d8c2/68747470733a2f2f6c6162656c3330352e6769746875622e696f2f41756a612f696d616765732f61756a612d616e696d617465642e676966)](https://camo.githubusercontent.com/b8fcedab51127559bc71804581d158abaab1983d17b34211dc2c889e66a1d8c2/68747470733a2f2f6c6162656c3330352e6769746875622e696f2f41756a612f696d616765732f61756a612d616e696d617465642e676966)

Related repositories
--------------------

[](#related-repositories)

- [**Auja**](https://github.com/Label305/Auja) - The frontend JavaScript GUI
- [**Auja PHP Development Kit**](https://github.com/Label305/Auja-PHP) - A web service development kit for communicating with the Auja javascript frontend

Installation and Setup
----------------------

[](#installation-and-setup)

Because Auja uses both a library for the PHP backand and a library for [the JavaScript frontend](https://github.com/Label305/Auja) there a few more steps required to install Auja that you may be used to with other libraries.

1. [Setup Laravel to work with Bower and Gulp](#setup-laravel-to-work-with-bower-and-gulp), if you haven't already. *This is done by default in Laravel 5, but you still need to install [bower](http://bower.io/) and [gulp](http://gulpjs.com/) globaly with [npm](http://nodejs.org/).*
2. Modify the `gulpfile.js` so all Auja's assets and scripts are placed in the correct folders when running `gulp`.

    ```
    var elixir = require('laravel-elixir');

    elixir(function(mix) {
        mix
        // .sass('app.scss') // included in Laravel 5 but not manditory
        .copy('auja/auja.min.js', 'public/js/vendor/auja.js')
        .copy('auja/auja.css', 'public/css/vendor/auja.css')
        .copy('trumbowyg/dist/ui/trumbowyg.min.css', 'public/css/vendor/trumbowyg.css')
        .copy('Ionicons/css/ionicons.min.css', 'public/css/vendor/ionicons.css')
        .copy('Ionicons/fonts/ionicons.ttf', 'public/css/fonts/ionicons.ttf')
        .copy('Ionicons/fonts/ionicons.woff', 'public/css/fonts/ionicons.woff')
        .copy('animate.css/animate.min.css', 'public/css/vendor/animate.css');
    });
    ```
3. Install the Auja javascript files through bower. When installing through bower the `gulp` command is automaticly called by bower.

    ```
    $ bower install auja
    ```
4. Install the Auja Laravel library through composer. The library depends on [Auja-PHP](https://github.com/Label305/Auja-PHP) which is a API wrapper for communicating with the javascript frontend.

    ```
    $ composer require label305/auja-laravel:dev-dev
    ```
5. Publish the Auja config file and main view

    ```
    $ php artisan config:publish label305/auja-laravel
    $ php artisan view:publish label305/auja-laravel
    ```
6. Add the `AdminServiceProvider`, `AujaFacade` and `AujaRouteFacade` to your `app.php` config file.

    ```
    'providers' => [
        ...
        'YourApp\Providers\AdminServiceProvider',
    ],
    'aliases' => [
        ...
        'Auja' => 'Label305\AujaLaravel\Facade\AujaFacade',
        'AujaRoute' => 'Label305\AujaLaravel\Facade\AujaRouteFacade',
    ],
    ```
7. Customize the `auja-laravel/config.php` file and specify the models you wish to be included in the Admin interface.
8. Create a `app/controllers/Admin/ClubsController.php` or `app/Http/Controllers/Admin/ClubsController.php`, to manage the `Clubs` in your admin interface. You can do this for all your models. Here is an example:

    ```
