Administrator is a database interface package for the Laravel PHP framework. Administrator provides a visual interface to manage the data models on your site as you define them. In its most basic configuration, all you have to do is reference your application's Eloquent data models and provide a couple more configuration options.
- Author: Jan Hartigan
- Website: http://frozennode.com
- Version: 4.2.0
To install Administrator as a Composer package to be used with Laravel 4, simply add this to your composer.json:
"frozennode/administrator": "dev-master"
..and run composer update
. Once it's installed, you can register the service provider in app/config/app.php
in the providers
array:
'providers' => array(
'Frozennode\Administrator\AdministratorServiceProvider',
)
Then publish the config file with php artisan config:publish frozennode/administrator
. This will add the file app/config/packages/frozennode/administrator/administrator.php
. This config file is the primary way you interact with Administrator.
Then finally you need to publish the package's assets with the php artisan asset:publish frozennode/administrator
command.
Since Administrator has switched over to Composer, you can no longer use php artisan bundle:install administrator
or php artisan bundle:upgrade administrator
. If you want to use Administrator with Laravel 3, you must switch to the 3.3.2 branch, download it, and add it in the /bundles/administrator
directory and add this to your bundles.php file:
'administrator' => array(
'handles' => 'admin', //this determines what URI this bundle will use
'auto' => true,
),
The complete docs for Administrator can be found at http://administrator.frozennode.com. You can also find the docs in the /src/docs
directory.
Administrator was written by Jan Hartigan of Frozen Node for the Laravel framework. Administrator is released under the MIT License. See the LICENSE file for details.
- The action permissions are now passed the relevant model so you can determine which actions are available for certain items in your database
- The 'visible' option for edit fields can now be passed a boolean or a callback that returns a boolean depending on the specific model being viewed
- Password fields are now available in the edit fields array
- Setter fields are now available in the edit fields array
- Bugfix: Unsetting belongsTo relationships weren't nullifying the value in the database
- Bugfix: Some missing language keys were causing translation bugs in some languages
- Bugfix: CKEditor wasn't properly loading up data after it had been cleared
See changelog.md for the changelog from previous versions