Coder Social home page Coder Social logo

chatter-laravel / core Goto Github PK

View Code? Open in Web Editor NEW
159.0 15.0 39.0 6.12 MB

The Laravel single page forum package (Vue + Tailwind CSS + Laravel)

License: MIT License

PHP 53.11% JavaScript 8.32% Vue 26.22% Less 11.83% Blade 0.52%
laravel laravel-framework larave-forum forum forum-software vuejs vue tailwindcss

core's Introduction

Build status Maintained repository MIT License

Chatter - Laravel Forum Package

This is a Vue + Tailwind CSS + Laravel forum package. Chatter is a single page application to create forums on Laravel applications with ease.

See the youtube demo

This package is inspired on the thedevdojo/chatter package

Installation

If you are planning to install Chatter on an already existing project, please check the ChatterPreset class and check which of the instalations steps you need to run, really dependes on what you got.

Chatter Branch Chatter Version Laravel version
5.x ^5.8 ^5.8
6.x ^6 ^6
7.x ^7 ^7
master dev-master ^8
  1. Install Laravel 8, If you are installing Chatter in an existing project skip this step.

  2. Include the package in your project and publish the package views, configs, etc:

    $ composer require "chatter-laravel/core:dev-master"
    $ php artisan vendor:publish --provider "Chatter\\Core\\ChatterServiceProvider"
    $ composer dump-autoload
  3. Run the chatter:install command and follow the instructions:

    $ php artisan chatter:install

    If you are installing Chatter in an existing project, include the --plugin option when you call the install command:

    $ php artisan chatter:install --plugin

    The installation command will take care of all that you need to install the forum: migrations, js components, tailwind, composer packages, node packages, etc.

    The app must be connected to a running mysql instance to run the migrations, on a development environment Laravel Sail can be run

  4. Add the CanDiscuss and HasApiTokens trait to your User model. If you have Laravel Passport already installed on your project you probably already have the HasApiTokens trait in your User model:

    <?php
    
    namespace App\Models;
    
    use Chatter\Core\Traits\CanDiscuss;
    use Laravel\Passport\HasApiTokens;
    use Illuminate\Notifications\Notifiable;
    use Illuminate\Foundation\Auth\User as Authenticatable;
    
    class User extends Authenticatable
    {
        use HasApiTokens, Notifiable, CanDiscuss;
  5. Chatter installation command already installs Laravel Passport but you need to add the CreateFreshApiToken middleware to your web middleware group in your app/Http/Kernel.php file:

    'web' => [
        // Other middleware...
        \Laravel\Passport\Http\Middleware\CreateFreshApiToken::class,
    ],

If you are installing Chatter on a fresh Laravel instalation, go straight to step 9

  1. Make sure you have Tailwind CSS configured with Laravel Mix

  2. Include the Chatter JS app into your resources/js/app.js:

    require('./chatter/app')
  3. Populate the categories of your forum. You can create a new seed for your project.

  4. Run the Laravel server:

    $ php artisan serve
  5. Now, visit http://localhost:8000/forums and you should see your new forum in front of you!

Testing

There are some factories that generates some testing information on the database. Just run the seed to execute those factories:

$ php artisan db:seed --class ChatterTableSeeder

Roadmap

  • Check compatiblity with Laravel 8
  • React to posts
  • Star this repository
  • Pin a discussion
  • Administration/moderation panel (block users, delete posts)
  • Report discussion
  • Edit posts and discussions (with versioning)
  • Users profiles
  • Users rewards
  • Tag other users on discussions and posts
  • Create tests
  • Use Localization (translations)

Known issues

If you're experiencing issues with your chatter installation, refer to Known issues. If you couldn't solve the issue, please submit a new ticket.

Customization

Configuration

When you published the vendor assets you added a new file inside of your config folder which is called config/chatter.php. This file contains a bunch of configuration you can use to configure your forums

Vue components

All the view components used by Chatter are published to your project by the preset instalation. You can make all the changes you need for your project on those.

Screenshots

Laravel chatter forum demo
Laravel chatter forum
Laravel chatter forum
Laravel chatter forum
Laravel chatter forum

core's People

Contributors

aaronranard avatar alessandrobelli avatar chrisbbreuer avatar cristianuibar avatar duncanmcclean avatar firescript avatar g1dra avatar galdazbiz avatar gerbenjacobs avatar gggggggg avatar idbendriss avatar lucasleandro1204 avatar marktopper avatar mattlibera avatar mhanoglu avatar napestershine avatar popouille avatar putera avatar sbarbat avatar seanwhelan avatar steffen25 avatar thomasbs avatar timacdonald avatar tnylea avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

core's Issues

Translations as it had the original would be great

We are using the "old" forum for some time, implementing new things etc and now we've found this one.
In the old one there was translations already (I pull requested it) I'm not a coder but somehow I managed to do it.
Not sure if you could use that part of the code to replicate it here and I offer to maintain it from time to time as I did with the other.

Problems with the database

running the php artisan chatter:install shout out the following error:

In Connection.php line 671:
SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint (SQL: alter table chatter_d iscussions add constraint chatter_discussions_user_id_foreign foreign key (user_id) references
users (id) on delete cascade on update cascade)

In PDOStatement.php line 129:
SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint

In PDOStatement.php line 127:
SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint

Installation failed on laravel 8

Problem 1
- Installation request for chatter-laravel/core dev-master -> satisfiable by chatter-laravel/core[dev-master].
- Conclusion: remove laravel/framework v8.18.1
- Conclusion: don't install laravel/framework v8.18.1
- chatter-laravel/core dev-master requires laravel/framework ^5.8 || ^6 || ^7 -> satisfiable by laravel/framework[5.8.x-dev, 6.x-dev, 7.x-dev].
- Can only install one of: laravel/framework[7.x-dev, v8.18.1].
- Can only install one of: laravel/framework[5.8.x-dev, v8.18.1].
- Can only install one of: laravel/framework[6.x-dev, v8.18.1].
- Installation request for laravel/framework (locked at v8.18.1, required as ^8.0) -> satisfiable by laravel/framework[v8.18.1].

Do you guys have any ideas to fixed this. Thanks

Laravel 7 installation failed

I'm using fresh laravel 7 version and added larave/ui package.

"laravel/framework": "^7.0",
"laravel/ui": "^2.0",

From the docs I read that I need to use dev-master branch for Laravel 7.
When I try to add chatter, I got an error:

composer require "chatter-laravel/core:dev-master"
./composer.json has been updated                                     
Loading composer repositories with package information                                                                                                   Updating dependencies (including require-dev)         Package operations: 20 installs, 0 updates, 0 removals
  - Installing paragonie/random_compat (v9.99.99): Loading from cache
  - Installing cocur/slugify (v4.0.0): Loading from cache
  - Installing cviebrock/eloquent-sluggable (7.0.1): Loading from cache
  - Installing lcobucci/jwt (3.3.2): Loading from cache
  - Installing psr/http-factory (1.0.1): Loading from cache
  - Installing laminas/laminas-zendframework-bridge (1.0.4): Loading from cache
  - Installing laminas/laminas-diactoros (2.3.0): Loading from cache
  - Installing laravel-frontend-presets/tailwindcss (4.1.0): Loading from cache
  - Installing symfony/psr-http-message-bridge (v2.0.0): Loading from cache
  - Installing phpseclib/phpseclib (2.0.27): Loading from cache
  - Installing php-http/message-factory (v1.0.2): Loading from cache
  - Installing nyholm/psr7 (1.3.0): Loading from cache
  - Installing defuse/php-encryption (v2.2.1): Loading from cache
  - Installing league/event (2.2.0): Loading from cache
  - Installing league/oauth2-server (8.1.0): Loading from cache
  - Installing firebase/php-jwt (v5.2.0): Loading from cache
  - Installing laravel/passport (v8.5.0): Loading from cache
  - Installing ezyang/htmlpurifier (v4.12.0): Loading from cache
  - Installing mews/purifier (3.2.2): Loading from cache
  - Installing chatter-laravel/core (dev-master 3c55d0b): Cloning 3c55d0b449 from cache
paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
phpseclib/phpseclib suggests installing ext-libsodium (SSH2/SFTP can make use of some algorithms provided by the libsodium-php extension.)
mews/purifier suggests installing laravel/lumen-framework (To test the Lumen bindings)
Writing lock file
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

In ChatterInstallCommand.php line 13:
                                                                 
  Class 'Illuminate\Foundation\Console\PresetCommand' not found  
                                                                 

Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

Installation failed, reverting ./composer.json to its original content.

This command (PresetCommand) has been removed in Laravel 7 (In laravel 6 it's present).
Do you have a patch for integration with 7-th version ?

Laravel 6

it's possible to use this awesome package into Laravel 6?

Vue css not loading correctly

Hey there

i dont know why but the vue css is not loading i am using laravel 8 and i already tried everything but cant fix this...can you help me pls
image

Thanks! Greets

Laravel version 6.18.8

What am I missing? It's installed, i'm logged in, but there is nothing at /forums.
I installed core ^6 on top of a fresh install of 6.18.8 (tried getting Laravel 7 to work but it would not resolve dependencies). ...but I have no /forums.

my web.php file is this--which is quite different than the devdojo routes:

Route::get('/', function () {
return view('welcome');
});
Auth::routes();

Route::get('/home', 'HomeController@index')->name('home');

Auth::routes();

Route::get('/home', 'HomeController@index')->name('home');

Auth::routes();

Route::get('/home', 'HomeController@index')->name('home');

BadMethodCallException - Call to undefined method Chatter\Core\Models\Discussion::jsonOptions()

Hi there.

I am just from installing a fresh installation of Chatter-Laravel on a fresh Laravel 8 following all the instractions.
At first run, I can see the Categories display well but the discussions are showing Viewing page 1/ of category_slug

Even with many discussion in the DB.

I check the console and I can notice that there is a server error form this request: http://localhost:8000/api/chatter/discussion?category=slug&page=1

this is the error message:

{
    "message": "Call to undefined method Chatter\\Core\\Models\\Discussion::jsonOptions()",
    "exception": "BadMethodCallException",
    "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Support\\Traits\\ForwardsCalls.php",
    "line": 71,
    "trace": [
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Support\\Traits\\ForwardsCalls.php",
            "line": 36,
            "function": "throwBadMethodCallException",
            "class": "Illuminate\\Database\\Eloquent\\Model",
            "type": "::"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Model.php",
            "line": 2132,
            "function": "forwardCallTo",
            "class": "Illuminate\\Database\\Eloquent\\Model",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Http\\Resources\\CollectsResources.php",
            "line": 73,
            "function": "__call",
            "class": "Illuminate\\Database\\Eloquent\\Model",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Http\\Resources\\Json\\PaginatedResourceResponse.php",
            "line": 28,
            "function": "jsonOptions",
            "class": "Illuminate\\Http\\Resources\\Json\\ResourceCollection",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Http\\Resources\\Json\\ResourceCollection.php",
            "line": 134,
            "function": "toResponse",
            "class": "Illuminate\\Http\\Resources\\Json\\PaginatedResourceResponse",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Http\\Resources\\Json\\ResourceCollection.php",
            "line": 114,
            "function": "preparePaginatedResponse",
            "class": "Illuminate\\Http\\Resources\\Json\\ResourceCollection",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php",
            "line": 802,
            "function": "toResponse",
            "class": "Illuminate\\Http\\Resources\\Json\\ResourceCollection",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php",
            "line": 789,
            "function": "toResponse",
            "class": "Illuminate\\Routing\\Router",
            "type": "::"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php",
            "line": 721,
            "function": "prepareResponse",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php",
            "line": 128,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php",
            "line": 50,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Routing\\Middleware\\SubstituteBindings",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php",
            "line": 127,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php",
            "line": 103,
            "function": "handleRequest",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php",
            "line": 55,
            "function": "handleRequestUsingNamedLimiter",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php",
            "line": 103,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php",
            "line": 723,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php",
            "line": 698,
            "function": "runRouteWithinStack",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php",
            "line": 662,
            "function": "runRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php",
            "line": 651,
            "function": "dispatchToRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php",
            "line": 167,
            "function": "dispatch",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php",
            "line": 128,
            "function": "Illuminate\\Foundation\\Http\\{closure}",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull.php",
            "line": 31,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\TrimStrings.php",
            "line": 40,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize.php",
            "line": 27,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance.php",
            "line": 86,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\fruitcake\\laravel-cors\\src\\HandleCors.php",
            "line": 52,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Fruitcake\\Cors\\HandleCors",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Http\\Middleware\\TrustProxies.php",
            "line": 39,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\TrustProxies",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php",
            "line": 103,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php",
            "line": 142,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php",
            "line": 111,
            "function": "sendRequestThroughRouter",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\public\\index.php",
            "line": 52,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "C:\\Users\\User\\Documents\\Projects\\forum\\server.php",
            "line": 21,
            "function": "require_once"
        }
    ]
}

I have search on the internet without any meaningful response so far.

Please can you help me troubleshooting this.

Laravel 7 support

The package cannot be installed in Laravel 7. Can it work in Laravel 7?

  Problem 1
    - Installation request for chatter-laravel/core ^6 -> satisfiable by chatter-laravel/core[v6.0].
    - Conclusion: remove laravel/framework v7.3.0
    - Conclusion: don't install laravel/framework v7.3.0
    - chatter-laravel/core v6.0 requires laravel/framework ^5.8 || ^6 -> satisfiable by laravel/framework[5.8.x-dev, 6.x-dev].
    - Can only install one of: laravel/framework[5.8.x-dev, v7.3.0].
    - Can only install one of: laravel/framework[6.x-dev, v7.3.0].
    - Installation request for laravel/framework (locked at v7.3.0, required as ^7.0) -> satisfiable by laravel/framework[v7.3.0].

I can't use the test data and the installation doesn't work

Hello!

I tested on fresh installation of Laravel 6 and 7, the problem is the same, as shown in the picture:
Bildschirmfoto 2021-03-22 um 10 41 17

Then when I say "No" it works, but then when inside the forum in /forums nothing works (Laravel 7):
Bildschirmfoto 2021-03-22 um 10 47 54

my user model:

use Chatter\Core\Traits\CanDiscuss;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Laravel\Passport\HasApiTokens;

class User extends Authenticatable
{
    use Notifiable,CanDiscuss,HasApiTokens;

I think it's the same problem with sluggable:

{
    "message": "Declaration of Chatter\\Core\\Models\\Discussion::sluggable() must be compatible with Cviebrock\\EloquentSluggable\\Sluggable::sluggable(): array",
    "exception": "Symfony\\Component\\ErrorHandler\\Error\\FatalError",
    "file": "/Users/belli/code/chatter/vendor/chatter-laravel/core/src/Models/Discussion.php",
    "line": 123,
    "trace": []
}

Any idea on how to solve it? I'm searching as well.

npm install failed

npm ERR! code EPROTO
npm ERR! syscall symlink
npm ERR! path ../semver/bin/semver.js
npm ERR! dest /home/vagrant/Code/chatter/node_modules/@babel/compat-data/node_modules/.bin/semver
npm ERR! errno -71
npm ERR! EPROTO: protocol error, symlink '../semver/bin/semver.js' -> '/home/vagrant/Code/chatter/node_modules/@babel/compat-data/node_modules/.bin/semver'

npm ERR! A complete log of this run can be found in:
npm ERR! /home/vagrant/.npm/_logs/2020-01-12T06_54_24_709Z-debug.log

Anyone facing this issue? test install in vagrant, not pass through the install steps.

Issue with user avatar

How do i add avatar , I already have avatar but it keep on generating other girl avatar, i already configured configure.php without success

Change profile avatar | config/chatter.php not work

I'm working with chatter forum with laravel 6 and I have a problem.

the Problem: chatter use avatars for the profiles photo's, how I can change that to use images links in the database?
I tried to change the Config/chatter.php but still not work

 'user' => [
        'namespace'                     => 'App\User',
        'database_field_with_user_name' => 'name',
        'relative_url_to_profile'       => '',
        'relative_url_to_image_assets'  => '/public/storage/',
        'avatar_image_database_field'   => 'avatar',
    ],

Issues with buttons

I was able to get it up and running, so I thought.

New Discussion, Edit, Delete, Post buttons do nothing but there are no errors on console.

Any idea what can be the cause?

Sanctum Intergration instead of Passport?

The project use Sanctum for authentication will conflict with passport.

Trait method tokens has not been applied, because there are collisions with other trait methods on App\User

I recieved 401 Unauthorized error when I am login !?

I install chatter with this composer config:
"php": "^7.2",
"chatter-laravel/core": "^6",
"fideloper/proxy": "^4.0",
"laravel/framework": "^6.2",
"laravel/tinker": "^2.0"
when I login with laravel home page route and submit post I receive:

Error Unauthenticated pop up!

Basic Delete/Edit Functionality

Could we get basic delete functionality for user's posts? A user can post but it is not possible to delete or edit your post.

Facing problems with Laravel 5.8

Hello,

I am trying to set this up for my project and I am running into a ton of problems for some reason

Running composer require "chatter-laravel/core:^5.8" leads to -

./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)

Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Solver.php on line 223

Check https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors for more info on how to handle out of memory errors.

I found a fix then used this which further leads to this -

COMPOSER_MEMORY_LIMIT=-1 composer require "chatter-laravel/core:^5.8"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - chatter-laravel/core 5.x-dev requires mews/purifier ^3.1 -> satisfiable by mews/purifier[3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.2.0, 3.2.1, 3.2.2].
    - chatter-laravel/core v5.8.0 requires mews/purifier ^3.1 -> satisfiable by mews/purifier[3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.2.0, 3.2.1, 3.2.2].
    - chatter-laravel/core v5.8.1 requires mews/purifier ^3.1 -> satisfiable by mews/purifier[3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.2.0, 3.2.1, 3.2.2].
    - chatter-laravel/core v5.8.2 requires mews/purifier ^3.1 -> satisfiable by mews/purifier[3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.2.0, 3.2.1, 3.2.2].
    - chatter-laravel/core v5.8.3 requires mews/purifier ^3.1 -> satisfiable by mews/purifier[3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.2.0, 3.2.1, 3.2.2].
    - chatter-laravel/core v5.8.4 requires mews/purifier ^3.1 -> satisfiable by mews/purifier[3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.2.0, 3.2.1, 3.2.2].
    - chatter-laravel/core v5.8.5 requires mews/purifier ^3.1 -> satisfiable by mews/purifier[3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.2.0, 3.2.1, 3.2.2].
    - chatter-laravel/core v5.8.6 requires mews/purifier ^3.1 -> satisfiable by mews/purifier[3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.2.0, 3.2.1, 3.2.2].
    - mews/purifier 3.2.2 requires php ^7.2 -> your PHP version (7.1.23) does not satisfy that requirement.
    - mews/purifier 3.2.1 requires php ^7.2 -> your PHP version (7.1.23) does not satisfy that requirement.
    - mews/purifier 3.2.0 requires php ^7.2 -> your PHP version (7.1.23) does not satisfy that requirement.
    - mews/purifier 3.1.3 requires php ^7.2 -> your PHP version (7.1.23) does not satisfy that requirement.
    - mews/purifier 3.1.2 requires php ^7.2 -> your PHP version (7.1.23) does not satisfy that requirement.
    - mews/purifier 3.1.1 requires php ^7.2 -> your PHP version (7.1.23) does not satisfy that requirement.
    - mews/purifier 3.1.0 requires php ^7.2 -> your PHP version (7.1.23) does not satisfy that requirement.
    - Installation request for chatter-laravel/core ^5.8 -> satisfiable by chatter-laravel/core[5.x-dev, v5.8.0, v5.8.1, v5.8.2, v5.8.3, v5.8.4, v5.8.5, v5.8.6].

I have just been stuck in a loop. Any help is appreciated. Thank you :)

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.