ardianferdianto/laravel-forum
Composer 安装命令:
composer require ardianferdianto/laravel-forum
包简介
A Laravel 5 package providing a solid foundation for building discussion forums
关键字:
README 文档
README
Complete documentation is available on teamteatime.net.
NOTE: Version 3.0 is no longer supported. If you're using a version of Laravel below 5.3, consider upgrading it!
Requirements
- PHP 5.4 or above
- Laravel 5.3 or above
Installation
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:
Riari\Forum\ForumServiceProvider::class,
Installing the standard front-end is recommended:
composer require riari/laravel-forum-frontend:~1.0
Riari\Forum\Frontend\ForumFrontendServiceProvider::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
Additional steps
Server configuration
If you installed Xdebug before version 2.3, you may need to modify xdebug.max_nesting_level. The suggested and new default value from version 2.3 onwards is 256.
Configuration
Several configuration files are published to your application's config directory, each prefixed with 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.
You may need to modify the
forum.integration.user_nameconfig 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 11 languages: German, English, Spanish, French, Italian, Romanian, Russian, Turkish, Serbian, Portuguese (Brazil) and Swedish. The translation files are published to resources/lang/vendor/forum/{locale}. Please be aware that much of the translation work in 3.0 has been done using Google Translate and probably isn't accurate. Pull requests are welcome to rectify this.
Policies (user permissions)
Permissions in 3.0 are handled via the Authorization features introduced in Laravel 5.1.11. Refer to src/Policies for a full list of policies. To override methods in a policy, just create a class extension for it somewhere in your application and change the corresponding namespace specified in the forum.integration.policies config array. You'll likely want to do this for the ForumPolicy and CategoryPolicy as a minimum to prevent your regular users from managing categories and threads!
ardianferdianto/laravel-forum 适用场景与选型建议
ardianferdianto/laravel-forum 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 13.64k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2020 年 11 月 27 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「forum」 「laravel」 「discuss」 「laravel-5」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 ardianferdianto/laravel-forum 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ardianferdianto/laravel-forum 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 ardianferdianto/laravel-forum 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A frontend for riari/laravel-forum providing views written with Bootstrap 3
A Laravel 5 package providing a solid foundation for building discussion forums
A frontend for riari/laravel-forum providing views written with Bootstrap 3
This Bundle provides threaded comment functionality for Symfony applications
Laravel forum package
Alfabank REST API integration
统计信息
- 总下载量: 13.64k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 13
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-11-27