Download the PHP package label305/auja-laravel without Composer
On this page you can find all versions of the php package label305/auja-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download label305/auja-laravel
More information about label305/auja-laravel
Files in label305/auja-laravel
Package auja-laravel
Short Description 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.
License Apache-2.0
Homepage https://github.com/Label305/Auja-Laravel
Informations about the package auja-laravel
Auja for Laravel
Deprecated
This repo will no longer be maintained and will be deleted in the start of 2017.
About
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 provides the graphical user interface. To determine its content, it relies on a JSON web-service you implement. 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.
Related repositories
- Auja - The frontend JavaScript GUI
- Auja PHP Development Kit - A web service development kit for communicating with the Auja javascript frontend
Installation and Setup
Because Auja uses both a library for the PHP backand and a library for the JavaScript frontend there a few more steps required to install Auja that you may be used to with other libraries.
-
npm.
-
Modify the
gulpfile.js
so all Auja's assets and scripts are placed in the correct folders when runninggulp
. -
Install the Auja javascript files through bower. When installing through bower the
gulp
command is automaticly called by bower. -
Install the Auja Laravel library through composer. The library depends on Auja-PHP which is a API wrapper for communicating with the javascript frontend.
-
Publish the Auja config file and main view
-
Add the
AdminServiceProvider
,AujaFacade
andAujaRouteFacade
to yourapp.php
config file. -
Customize the
auja-laravel/config.php
file and specify the models you wish to be included in the Admin interface. -
Create a
app/controllers/Admin/ClubsController.php
orapp/Http/Controllers/Admin/ClubsController.php
, to manage theClubs
in your admin interface. You can do this for all your models. Here is an example: -
Now setup the routes for the administration panel.
- Tip: add the following lines to your
.gitignore
:
Setup Laravel to work with Bower and Gulp
-
Make sure node.js and npm are installed.
-
Make sure you have setup the
.bowerrc
file for Laravel and gulp. By the way these are the Laravel 5 defaults but will work on other versions as well. -
Install the javascript dependencies that are included in Laravel 5 by default. If you work with another version add the
package.json
file to your projects root.And run:
-
Setup the
gulpfile.js
in your projects root. - Now you're all setup. Laravel 5 also includes a
bower.json
file but placing this file is not mandatory for other versions.
Custom Model Configurations
You can provide your own subclasses of ModelConfig
to the Auja config file in the models
key. This way you can customize icons
for example.
-
Create a new class that extends
ModelConfig
, for exampleUserConfig
. - Modify the
auja-laravel/config.php
file to reference this new class.
Custom Auja Support Controller
By default Auja provides a default support controller to handle authentication and providing the main interface manifest. If you want your own AujaSupportController to handle authentication you can implement your own. Create a YourSupportController.php
. This file contains information on what kind of information the admin area should contain and how administrators authenticate.
-
Set
route
tonull
in the configucation and create your own route to the controller. - Create the
YourSupportController.php
file and make sure it implementsAujaSupportControllerInterface
.
License
Copyright 2014 Label305 B.V.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
All versions of auja-laravel with dependencies
label305/auja Version 3.0.0-alpha7
illuminate/support Version 4.2.*
doctrine/dbal Version 2.5.*