Giter Site home page Giter Site logo

munafio / chatify-demo Goto Github PK

View Code? Open in Web Editor NEW
447.0 447.0 163.0 1.86 MB

Chatify Laravel Package Demo application

Home Page: https://github.com/munafio/chatify

PHP 41.34% Shell 0.40% Blade 24.70% JavaScript 22.40% CSS 11.17%
chatify chatting demo-app laravel laravel-application messenger pusher real-time

chatify-demo's Introduction

This is a Laravel demo app for Chatify.

Quick Start

  • Clone or download this repo and place it into your server.
  • composer install
  • cp .env.example .env
  • Create database and modify .env with your DB name and Pusher credentials.
  • php artisan migrate --seed
  • php artisan key:generate
  • npm install && npm run dev
  • php artisan storage:link
  • php artisan serve

then choose a user from the database and login.

chatify-demo's People

Contributors

munafio 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  avatar  avatar  avatar  avatar

chatify-demo's Issues

Did not received messages real-time !!

I have installed this package and follow all instructions. chat is working fine but messages only displayed after refreshing the page. Can you please help me to fix this issue.

Login Error

i choose a user from the database but when i try login i get this error These credentials do not match our records.

pProblem

Does not display users in "All Messages"

  1. Something is missing in app.blade.layout for chatify under the {{-- ---------------- [ User Tab ] ---------------- --}}

<p class="messenger-title"><span>All Messages</span></p> <div class="listOfContacts" style="width: 100%;height: calc(100% - 272px);position: relative;"></div> within this code.

  1. There should be something like {!! view('Chatify::layouts.listItem', ['get' => 'users', 'lastMessage' => $lastMessage]) !!} but I'm not sure where to get the $lastmessage from.

Can't see chat box or favorite chat user

Hi!
I installed the demo as per the instructions. I am running it on my local server and have successfully logged in.
But There's a blank page and nothing on it. The other links which I can see are
Profile and dashboard. But there are no chat links.
Can you look into it? Did I miss something?

changing user profile from avatar

I was wondering having a database where each user has a profile_picture, I want to use it as the avatar specified in chatify, anyone can hepl me achieve this ? I see that its being set with javascript after making a request with ajax
`$.ajax({
url: url + "/idInfo",
method: "POST",
data: { _token: csrfToken, id },
dataType: "JSON",

  success: (data) => {
    if (!data?.fetch) {
      NProgress.done();
      NProgress.remove();
      return;
    }
    // avatar photo
    $(".messenger-infoView")
      .find(".avatar")
      .css("background-image", 'url("' + data.user_avatar + '")');
      console.log("data"),
    $(".header-avatar").css(
      "background-image",
      'url("' + data.user_avatar + '")'
    );`

so slow

request takes a very long time to display the page

Does not display users avatar.

Doesn't show the user's avatar. Probably because my users' avatars are saved in a column "photo".
Is it possible configure to get avatars from { users->photo }.

Bug stored xss in message area

Hello,

Nice Project, but i founded bug in your package

Hello, I found an xss bug in the chat textarea, I checked the code already has htmlspecialchars, but the payload can still be executed,

Thank you

doesn't support php 8.3

composer install

  Problem 1
    - nette/schema is locked to version v1.2.3 and an update of this package was not requested.
    - nette/schema v1.2.3 requires php >=7.1 <8.3 -> your php version (8.3.0) does not satisfy that requirement.
  Problem 2
    - nette/utils is locked to version v4.0.0 and an update of this package was not requested.
    - nette/utils v4.0.0 requires php >=8.0 <8.3 -> your php version (8.3.0) does not satisfy that requirement.
  Problem 3
    - nette/schema v1.2.3 requires php >=7.1 <8.3 -> your php version (8.3.0) does not satisfy that requirement.
    - league/config v1.2.0 requires nette/schema ^1.2 -> satisfiable by nette/schema[v1.2.3].
    - league/config is locked to version v1.2.0 and an update of this package was not requested.

After Send message receiver need to reload page!! pusher not working properly

Laravel 6
Php 7.2

FIrst of all thanks a lot for such a wonderfull chat package i have integrate this with my events management platform and need you help to grow.

After sending text console shows this error

Pusher : Event recd : {"event":"pusher:error","data":{"code":null,"message":"To send client events, you must enable this feature in the Settings page of your dashboard."}}
pusher.min.js:8 Pusher : Error : {"type":"WebSocketError","error":{"type":"PusherError","data":{"code":null,"message":"To send client events, you must enable this feature in the Settings page of your dashboard."}}}

i tried with bootstrap.js::

import Echo from 'laravel-echo';
window.Pusher = require('pusher-js');
window.Echo = new Echo({
broadcaster: 'pusher',
key: process.env.MIX_PUSHER_APP_KEY,
cluster: process.env.MIX_PUSHER_APP_CLUSTER,
encrypted: true
});

my app.js and bootstrap.js
app.zip

Does not work with Laravel 9

Hi, thank you for creating such a good app. I tried with Laravel 10 and it works fine.

Then I tried Laravel 9 by changing the follows in the composer.json only:

        "php": "^8.0.2",
        "laravel/framework": "^9.52.4",
        "spatie/laravel-ignition": "^1.6.4"

When I ran the app and try to login, I got the following error:
image

Any idea? Thanks.

Edit the Message Controller getContacts

Hi,,, I have successfully integrated Chatify,,, its a great work,.,, but in the MessageController that comes as result of publishing the config files,, I can't see the effect of changes made there..

Lets say in the searchUser, I want the get users where column a is equal to Auth::user()->column a

Tried it didn't see my changes, even tried to remove the code, didn't see changes of error code... How can I solve it
ksnkdfnlkd
kdkdlkfedfd

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.