Tired of creating and configuring similar models and controllers which deal with basic CRUD, validation and user role-based capabilities? Station allows developers to setup and configure a backend CMS for a Laravel app/site very quickly.
- UI using a vanilla bootstrap layout which you can style in your own app.
- Allows for easy table association setup through config files.
- GD (compiled with PHP, if you want to take advantage of the image resizing features)
The Station Service Provider can be installed via Composer by requiring the
canary/station
package in your project's composer.json
.
{
"require": {
"canary/station": "0.1.*"
}
}
Then run a composer update
composer update
This assumes you have a working dev or production environment with Laravel 4 already installed.
To use station, you must register the provider when bootstrapping your Laravel application.
Find the providers
key in your app/config/app.php
and register the Station Service Provider.
'providers' => array(
// ...
'Canary\Station\StationServiceProvider',
'Way\Generators\GeneratorsServiceProvider',
)
Then publish the package configuration files using Artisan. This will copy Station's default configuration to your app. You can then change and add to these configuration files as needed.
php artisan config:publish canary/station
At this time you can (optionally) edit /app/config/packages/canary/station/_app.php
and change the root_admin_email
This will generate migrations, run migrations, generate models, and seed the database.
php artisan station.build
php artisan asset:publish canary/station
You should now be able to browse to your app at:
http://{host}/station/ (ex. http://app.localhost/station/) and see station running without errors.
You can log in using user/password: admin/admin
Start by editing /app/config/packages/canary/station/_app.php
Then create files for each panel in /app/config/packages/canary/station/ [we need documentation on this]
That's it. You now have a fully functioning back end and user management system for your site.
- The validation rule 'unique' MUST accept 2 parameters: table name, and column name. No more and no less. [ex. unique:users,username]