PHP code example of innoboxrr / forum

1. Go to this page and download the library: Download innoboxrr/forum library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

innoboxrr / forum example snippets


Innoboxrr\Forum\ForumServiceProvider::class,

   'editor' => 'simplemde',
   

   'editor' => 'trumbowyg',
   

protected $listen = [
    'Innoboxrr\Forum\Events\ForumBeforeNewDiscussion' => [
        'App\Listeners\HandleNewDiscussion',
    ],
];

public function handle(ForumAfterNewDiscussion $event)
{
    // Acceder a la discusión
    $event->discussion;
    
    // Acceder al post
    $event->post;
}
bash
php artisan vendor:publish --provider="Innoboxrr\Forum\ForumServiceProvider"
bash
composer dump-autoload
bash
php artisan migrate
bash
php artisan db:seed --class=ForumTableSeeder
bash
php artisan vendor:publish --tag=forum_assets --force
php artisan vendor:publish --tag=forum_config --force
php artisan vendor:publish --tag=forum_migrations --force
bash
php artisan migrate

resources/views/vendor/forum/home.blade.php
resources/views/vendor/forum/discussion.blade.php