riari / laravel-forum
A Laravel package providing a solid foundation for building discussion forums
Installs: 73 244
Dependents: 4
Suggesters: 0
Security: 0
Stars: 602
Watchers: 30
Forks: 165
Open Issues: 9
Requires
- php: ^8.2
- doctrine/dbal: ^4.0
- kalnoy/nestedset: ^6.0
- laravel/framework: ^11.0
Requires (Dev)
- orchestra/testbench: ^9.0
- 6.x-dev
- 6.0.13
- 6.0.12
- 6.0.11
- 6.0.10
- 6.0.9
- 6.0.8
- 6.0.7
- 6.0.6
- 6.0.5
- 6.0.4
- 6.0.3
- 6.0.2
- 6.0.1
- 6.0.0
- 6.0.0-rc.9
- 6.0.0-rc.8
- 6.0.0-rc.7
- 6.0.0-rc.6
- 6.0.0-rc.5
- 6.0.0-rc.4
- 6.0.0-rc.3
- 6.0.0-rc.2
- 6.0.0-rc.1
- 5.6.4
- 5.6.3
- 5.6.2
- 5.6.1
- 5.6.0
- 5.5.0
- 5.4.3
- 5.4.2
- 5.4.1
- 5.4.0
- 5.3.8
- 5.3.7
- 5.3.6
- 5.3.5
- 5.3.4
- 5.3.3
- 5.3.2
- 5.3.1
- 5.3.0
- 5.2.5
- 5.2.4
- 5.2.3
- 5.2.2
- 5.2.1
- 5.2.0
- 5.1.1
- 5.1.0
- 5.0.x-dev
- 5.0.10
- 5.0.9
- 5.0.8
- 5.0.7
- 5.0.6
- 5.0.5
- 5.0.4
- 5.0.3
- 5.0.2
- 5.0.1
- 5.0.0
- 5.0.0-rc.3
- 5.0.0-rc.2
- 5.0.0-rc.1
- 4.2.0
- 4.1.5
- 4.1.4
- 4.1.3
- 4.1.2
- 4.1.1
- 4.1.0
- 4.0.x-dev
- 4.0.2
- 4.0.1
- 4.0.0
- 3.1.9
- 3.1.8
- 3.1.7
- 3.1.6
- 3.1.5
- 3.1.4
- 3.1.3
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.x-dev
- 3.0.4
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- 3.0.0-RC6
- 3.0.0-RC5
- 3.0.0-RC4
- 3.0.0-RC3
- 3.0.0-RC2
- 3.0.0-RC1
- 2.5.0
- 2.4.9
- 2.4.8
- 2.4.7
- 2.4.6
- 2.4.5
- 2.4.4
- 2.4.3
- 2.4.2
- 2.4.1
- 2.4.0
- 2.3.9
- 2.3.8
- 2.2.7
- 2.2.6
- 2.2.5
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.0
- 2.0.0
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.1
- 1.1.0
- 1.0.0
- dev-dependabot/composer/laravel/framework-11.31.0
- dev-dependabot/composer/symfony/process-7.1.7
- dev-dependabot/composer/symfony/http-foundation-7.1.7
- dev-feature/mod-queues
- dev-feature/broadcasting
- dev-laravel-5
- dev-laravel-4
This package is auto-updated.
Last update: 2024-11-12 22:25:09 UTC
README
Complete documentation is available on teamteatime.net.
Versions
Please note that older package versions not listed above are no longer maintained or supported.
See the support policy in the Laravel docs for more information about Laravel release versions, their supported PHP versions, and how long they receive bug & security fixes.
Installation
Step 1: Install the package
Install the package via composer:
composer require riari/laravel-forum:^6.0
Package Discovery should take care of registering the service provider automatically, but if you need to do so manually, add the service provider to your bootstrap/providers.php
:
TeamTeaTime\Forum\ForumServiceProvider::class,
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
Step 4: Install a UI preset
A forum:preset-install {name}
command is available for installing UI presets. Run forum:preset-list
to see a list of available presets. You must install one of these to publish the corresponding views to your application. For example:
php artisan forum:preset-install livewire-tailwind
Note
By default, the livewire-tailwind
preset is set as the active one in the forum.frontend.preset
config value. This preset requires Livewire and a few other dependencies. Refer to UI Presets for details.
Additional steps
Configuration
Several configuration files are published to config/forum
. Refer to these for a variety of options for changing the behaviour of the forum and how it integrates with key parts of your application code.
Note
You may need to modify the forum.integration.user_name
config option according to your user model. This specifies which attribute on the user model should be used as a display name in the forum views.
Translations
Laravel Forum currently supports 15 languages: German, English, Spanish, French, Italian, Dutch, Romanian, Russian, Thai, Turkish, Serbian, Portuguese (Brazil), Swedish, Chinese, and Indonesian. The translation files are published to resources/lang/vendor/forum/{locale}
.
Note
Some new language strings have been introduced in version 6 but not yet translated; PRs to translate these would be greatly appreciated.
Development
If you wish to contribute, an easy way to set up the package for local development is Team-Tea-Time/laravel-studio, which is set up to load a local working copy of this repository (see the readme for usage details).
Running tests
Bring up the MySQL service:
docker-compose up -d mysql
Install Composer dependencies:
docker-compose run --rm composer install
Run the phpunit container to execute tests:
docker-compose run --rm phpunit
Seeding
The package tables can be seeded with sample categories, threads, posts, and a user via forum:seed
:
docker-compose exec php-fpm php artisan forum:seed