Laravel Forum 4 Documentation

General - Installation


Version 4 is compatible with Laravel 5.3 and above. Features, functionality and usage are identical to version 3.


  • PHP 5.4 or above
  • Laravel 5.3

Step 1: Install the package

Install the package via composer:

composer require riari/laravel-forum:~4.0

Then add the service provider to your config/app.php:


Installing the front-end is recommended. Note that version 1 of the front-end is compatible with versions 3 and 4 of the core package.

Step 2: Publish the package files

Run the vendor:publish command to publish the package config, translations and migrations to your app’s directories:

php artisan vendor:publish

Step 3: Update your database

Run your migrations:

php artisan migrate

Assuming this succeeds, you can now define your forum categories in the forum_categories table, or authenticate with a user that has the createCategories ability (granted to all users by default) and use the ‘Create category’ panel displayed on the forum index (/forum).