chatter
chatter copied to clipboard
Laravel 8 and Chatter
Im trying to figure out. How to install Chatter in Laravel 8. Is there somebody who did it already? :)
I've managed to do a successfull install under laravel 8x. Attached the procedure I've made: To have a fresh installation:
composer create-project laravel/laravel forum
cd forum
With the fresh installation, followed the installation procedure:
composer require "devdojo/chatter=0.2.*"
composer dump-autoload
This solved the conflicts with the package installation of composer. After that, I've manually registrated the service provider in config->app.php
/*
* Application Service Providers...
*/
DevDojo\Chatter\ChatterServiceProvider::class,
Then run composer dump-autoload
again and php artisan vendor:publish
Which provider or tag's files would you like to publish?:
[0 ] Publish files from all providers and tags listed below
[1 ] Provider: DevDojo\Chatter\ChatterServiceProvider
...
[12] Tag: chatter_assets
[13] Tag: chatter_config
[14] Tag: chatter_migrations
[15] Tag: chatter_seeds
...
>
I've manually selected number 1 Provider: DevDojo\Chatter\ChatterServiceProvider
and all the chatter_*
. To do so, I had to run several times the php artisan vendor:publish
.
The next problem was the migrations. After publishing chatter assets, under database->migrations
you'll find all the migrations the package is gonna make.
Change in all the migrations the integer
to bigInteger
in orther to avoid errors in the foreign keys creations and increments
to bigIncrements
.
When finished, just migrate: php artisan migrate
.
There's a missing package that is required, which is Graham's Norton Markdown package for laravel. I've selected the latest available version (13.1 by the time this was written) and installed it following the procedure described in the pacakage's page.
composer require graham-campbell/markdown:^13.1
Registered again the service provider in config->app.php
:
GrahamCampbell\Markdown\MarkdownServiceProvider::class,
Followed by the composer dump-autoload
and php artisan vendor:publish
this time selecting Provider: GrahamCampbell\Markdown\MarkdownServiceProvider
.
Then created the views->layout->app.blade.php
:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Laravel Quickstart - Intermediate</title>
<!-- Fonts -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css" rel='stylesheet'
type='text/css'>
<link href="https://fonts.googleapis.com/css?family=Lato:100,300,400,700" rel='stylesheet' type='text/css'>
<!-- Styles -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
{{-- <link href="{{ elixir('css/app.css') }}" rel="stylesheet"> --}}
<!-- Forum css-->
@yield('css')
<style>
body {
font-family: 'Lato';
}
.fa-btn {
margin-right: 6px;
}
</style>
</head>
<body id="app-layout">
<nav class="navbar navbar-default">
<div class="container">
<div class="navbar-header">
<!-- Collapsed Hamburger -->
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
data-target="#app-navbar-collapse">
<span class="sr-only">Toggle Navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!-- Branding Image -->
<a class="navbar-brand" href="{{ url('/') }}">
Task List
</a>
</div>
<div class="collapse navbar-collapse" id="app-navbar-collapse">
<!-- Left Side Of Navbar -->
<ul class="nav navbar-nav">
</ul>
<!-- Right Side Of Navbar -->
<ul class="nav navbar-nav navbar-right">
<!-- Authentication Links -->
@if (Auth::guest())
<li><a href="{{ url('/login') }}">Login</a></li>
<li><a href="{{ url('/register') }}">Register</a></li>
@else
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
{{ Auth::user()->name }} <span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
<li><a href="{{ url('/logout') }}"><i class="fa fa-btn fa-sign-out"></i>Logout</a></li>
</ul>
</li>
@endif
</ul>
</div>
</div>
</nav>
@yield('content')
<!-- JavaScripts -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<!-- Forum js -->
@yield('js')
{{-- <script src="{{ elixir('js/app.js') }}"></script> --}}
</body>
</html>
And inserted the yield('css')
and yield('js')
as mentioned in the installation instructions of the package and voila !!!
Hope this works for the people who still need this package.
New discussion button is not responding
New discussion button is not responding
@muriithigachanja
how did you solve it?
https://gitlab.com/yazanworck/forum it`s worc
view file not show and button action not responding