GithubHelp home page GithubHelp logo

leo9843 / laravel-forum Goto Github PK

View Code? Open in Web Editor NEW

This project forked from team-tea-time/laravel-forum

0.0 1.0 0.0 817 KB

A minimal forum package designed for easy integration into any Laravel 4/5 application

Home Page: http://laravel-forum.teamteatime.net/

License: MIT License

PHP 100.00%

laravel-forum's Introduction

Scrutinizer Code Quality

Complete documentation is available on teamteatime.net.

Requirements

  • PHP 5.4 or above
  • Laravel 5.1 or above (5.3 or above for package version ~4.0)

Installation

Step 1: Install the package

Install the package via composer:

composer require riari/laravel-forum:~3.0

If you're using Laravel 5.3 or above, you'll need version ~4.0:

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_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 11 languages: German, English, Spanish, French, Italian, Romanian, Russian, Turquish, 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!

laravel-forum's People

Contributors

antonkomarev avatar atrakeur avatar ayyobro avatar breakeryouko avatar brotzka avatar brunoaferreira avatar fatihkahveci avatar flinux avatar garf avatar gerbenjacobs avatar jetwes avatar maidomax avatar mandark avatar matheus1lva avatar morloderex avatar neamtua avatar ricardobarantini avatar ritey avatar sasin91 avatar tanerkay avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.