2017 © Pedro Peláez

library forum

A complete forum package designed for integration in any website build with laravel



A complete forum package designed for integration in any website build with laravel

  • Wednesday, May 31, 2017
  • by lxzian
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 21 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown


Laravel forum package

** Note: This package is now discontinued as I don't have time to improve it anymore. However, a nice guy has forked it and improved it on top of my work and is now keeping it alive. I suggest you have a look at this repo for the new, updated version. This repo will only stay here for documentation purposes. Please submit your pull requests and issues to Riari's one instead. **, (*1)

Build Status Scrutinizer Code Quality, (*2)


This package aims to provide a good starting point implementing a forum inside a Laravel application. It focus on taking care of all the tedious and repetiting work of forum creation (categories, subcategories, topics, messages). Allowing you to spend more time on you website features and how the forum integrates with you application. This package will provide multiple hooks such as specials events and custom closures to allow you to customise his behavior. Additionnaly, you'll be able to extends forum's core classes to implement you own methods directly inside the core., (*3)

This package is far from finished, and pull requests are always welcome to make this package better together., (*4)


Import the package

To install, simply add the following line to your composer .json and run composer update:, (*5)

"atrakeur/forum": "dev-master"

Then add the following service provider to your app.php:, (*6)


Integrate into your app

Before anything, in some cases (L4) you may need to run an update for composer before these next steps, so:, (*7)

composer update

and, just to be safe, run:, (*8)

composer dump-autoload

Now publish forum's files right into your Laravel app: php artisan config:publish atrakeur/forum php artisan migrate:publish atrakeur/forum, (*9)

If all goes well, you should find configuration files inside app/config/packages/atrakeur/forum and three new migrations in app/database/migrations., (*10)

Now you can create the database schema using the default Laravel command php artisan migrate ., (*11)

To enable you to fully customise the package to your website, the package is integrated inside your application using two application level controllers. Run the command php artisan forum:install to auto-deploy the controllers in your app/controllers folder. (Please note that if a file with the same name allready exist, the command above will fail before overriding your files.), (*12)


To tweak the views publish them to your views folder using the Laravel command:, (*13)

php artisan view:publish atrakeur/forum, (*14)

The very last step needed is to create some categories and subcategories into the forum_categories tables. The schema is very basic and you should be able to do that on your own using Laravel seeds (TODO: give some examples), (*15)

Now you are ready to go, just load http://localhost/forum and you should see a brand new forum., (*16)

More information on how to integrate it with your login system is available through the config files comments. (TODO: give some examples) By default, it should run well on Laravel default auth., (*17)


This package is currently in (very-)alpha stage, so all of the following features may or may not work yet. However, feel free to post issues and features requests at https://github.com/atrakeur/laravel-forum/issues . I'll try to fix and improve the package as fast as I can based on your help!, (*18)

  • Category nesting on 2 levels
  • Topic and messages inside categories
  • Easy user integration (through config files and callbacks)
  • Easy user right integration (through config files and callbacks)
  • Message posting (with hooks for app integration)
  • Light weight & blasing fast (designed with caching and high speed in mind)
  • Designed on bootstrap (clean and simple markup, no messy css and should integrate directly into your website)


This package provides various events as hooks to enable you to implement you own functionnality on top of forum's functionnality. Here is a complete list of all events, as to when they are fired. When a parameter is given, you can use this parameter to change a forum's iternal object to fit your needs., (*19)

Events Params Usage
forum.new.topic $topic Called before topic save. Can be used to modify topic contents
forum.new.message $message Called before message save. Can be used to modify message contents
forum.saved.topic $topic Called after topic save. Can be used for logging purposes
forum.saved.message $message Called after message save. Can be used for logging purposes

The Versions

31/05 2017



A complete forum package designed for integration in any website build with laravel

  Sources   Download


The Requires


The Development Requires

by Avatar atrakeur

21/10 2014



A complete forum package designed for integration in any website build with laravel

  Sources   Download


The Requires


The Development Requires

by Avatar atrakeur