Package Data | |
---|---|
Maintainer Username: | cherryoff |
Maintainer Contact: | cherry.off@gmail.com (cherryoff) |
Package Create Date: | 2014-10-22 |
Package Last Update: | 2014-11-12 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-22 03:06:18 |
Package Statistics | |
---|---|
Total Downloads: | 20 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Simple blog for Laravel
To install Nbblog as a Composer package to be used with Laravel 4, simply add this to your composer.json:
"cherryoff/nbblog": "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(
'Cherryoff\Nbblog\NbblogServiceProvider',
)
Then publish the config file with php artisan config:publish cherryoff/nbblog
. This will add the file app/config/packages/cherryoff/nbblog/config.php
.
Migrate php artisan migrate --package="cherryoff/nbblog"
You can add 'NbblogSeeder' => 'Cherryoff\Nbblog\NbblogSeeder',
in app/config/app.php
in the aliases
array
And seed php artisan db:seed --class="NbblogSeeder"
, for add initial data
Then finally you need to publish the package's assets with the php artisan asset:publish cherryoff/nbblog
command