Laraboard attempts to provide an easy to use, feature rich, Laravel powered forum package.
It is currently under heavy development and not recommended for production environments.
Require this package with composer:
composer require christhompsontldr/laraboard
After updating composer, add the ServiceProvider to the providers array in config/app.php
Christhompsontldr\Laraboard\ServiceProvider::class,
Now move the config files from the package into your application
php artisan vendor:publish
This will create config/laraboard.php
and config/laratrust.php
. If you want to modify table prefixes or other information, now is the time to do it.
The next command will create migrations, create the Role
and Permission
models and add traits to your application's User model.
php artisan laraboard:setup
If you already have Laratrust installed, you have the option to not set it up now
php artisan laraboard:setup --no-laratrust
This will allow you to create the migrations only. You can then modify them. Run this before the setup
command.
php artisan laraboard:migrations
Run the migrations
php artisan migrate
If you have not created the role found in the laraboard.user.admin_role
, create it now and associate it with a user.
Laravel blade stacks are utilized to include required JS and CSS.
Please include this in the <head>
of your main layout:
@stack('styles')
and this above </body>
@stack('scripts')
Laraboard utilizes Laravel's built in Authentication and Authorization systems.
Laraboard uses Bootstrap for styling and DOM structure.
The Laravel Collective package is utilizes for building HTML and forms. If you aren't already using it, no worries, Laraboard will install it.