Giter Site home page Giter Site logo

munafio / chatify Goto Github PK

View Code? Open in Web Editor NEW
2.1K 2.1K 453.0 4.29 MB

Laravel's #1 one-to-one chatting system package, helps you add a complete real-time chatting system to your new/existing Laravel application with only one command.

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

License: GNU General Public License v3.0

CSS 17.29% JavaScript 34.24% PHP 38.21% Blade 10.26%
chat chatify conversion laravel laravel-chat laravel-package library php pusher real-time realtime-messaging

chatify's Introduction

Blog Badge Linkedin Badge Twitter Badge YouTube Badge

import SoftwareDeveloper from 'munafio';
import { Languages, Frameworks } from 'munafio/skills';

class Bio extends SoftwareDeveloper {
  name     = 'Munaf Aqeel Mahdi';
  title    = 'Senior Software Developer';
  location = 'Babil, IQ';
}

class Skills extends SoftwareDeveloper {
  languages  = ['JavaScript', 'TypeScript', 'PHP', ...Languages];
  databases  = ['MySQL', 'MongoDB', 'PostgreSQL'];
  frameworks = ['Vue', 'React', 'Next.js', 'Laravel', 'Nest.js', ...Frameworks];
}

chatify's People

Contributors

a7md avatar carloscapela avatar dasundev avatar dependabot[bot] avatar ezekielkolawole avatar inmass avatar itsrafsanjani avatar lootfi avatar munafio avatar octiwhale avatar rifrocket avatar rigonlucas avatar stoneshaq avatar vicenterusso 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  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

chatify's Issues

Support for PHP 7.4

Getting this issue on PHP 7.4 due to pusher/pusher-php-server ^3.4@dev

Problem 1
- Installation request for pusher/pusher-php-server v3.4.1 -> satisfiable by pusher/pusher-php-server[v3.4.1].
- pusher/pusher-php-server v3.4.1 requires php >=5.4 <7.4 -> your PHP version (7.4.3) does not satisfy that requirement.
Problem 2
- pusher/pusher-php-server v3.4.1 requires php >=5.4 <7.4 -> your PHP version (7.4.3) does not satisfy that requirement.
- munafio/chatify v1.0.0 requires pusher/pusher-php-server ^3.4@dev -> satisfiable by pusher/pusher-php-server[v3.4.1].
- Installation request for munafio/chatify v1.0.0 -> satisfiable by munafio/chatify[v1.0.0].

Route [login] not defined.

Hi,
I'm a newbie and a learner, I tried to follow the steps and install it in my local machine, everything installed smoothly but at the end of the installation when i try to access it keeps throwing this error:

"Symfony\Component\Routing\Exception\RouteNotFoundException
Route [login] not defined.
http://localhost/laravelprojects/chatApp/public/chatify"

I tried few times but i don't understand what am I doing wrong.

Chat Widget

Is there any chat widget support to put this on a website?

getContacts error when fetching using MSSQL

I get this error
"SQLSTATE[42000]: [Microsoft][ODBC Driver 13 for SQL Server][SQL Server]A column has been specified more than once in the order by list. Columns in the order by list must be unique. (SQL: select top 1 * from [messages] where [from_id] = 2 and [to_id] = 1 or [from_id] = 1 and [to_id] = 2 order by [created_at] desc, [created_at] desc)"
when running using MSSQL db.

I fix it by comment out orderBy in the ChatifyMessenger.php
from : public function getLastMessageQuery($user_id){ return self::fetchMessagesQuery($user_id)->orderBy('created_at','DESC')->latest()->first(); }

to : public function getLastMessageQuery($user_id){ return self::fetchMessagesQuery($user_id)->latest()->first(); }

Configuration tweak for User Modal

I hope we can get some configuration to set the model we want to use. For now I got this warning on devTools :"Class 'App\User' not found", because my User model is in different place

Jquery missing issue.

i ran into js issues due to jquery was not loaded before loading other scripts.

<script src="{{ asset('front/js/jquery-3.2.1.min.js')}}"></script>

add this in "\vendor\munafio\chatify\views\layouts\footerLinks.blade.php" to solve the issue
"Uncaught ReferenceError: $ is not defined at code.js:7"

Feature request for delete message feature+ small suggestion

Would be great to have an opportunity to delete the sent message.

Also I had some stupid problems with instalation, because I run that on clean Laravel 6.x instalation. So I had to add the new authentication commands:


composer require laravel/ui --dev
php artisan ui vue --auth
npm install && npm run dev

without those commands the package would not run, would be nice for others if you will add that in the documentation

Socket.Io

Do you have any plans to release Socket.IO version of this pls without pusher ?

Suggestion

is there any plan for pinned message? like discord to be more organized?

Update on MassageController not applies

I published the Controllers with PHP artisan vendor:publish and make some change on the controller. But the routes still loads the controller in vendor directory. Is there a solution for that Can I also publish the routes?

Regards
Nuri

Isnt this "unsafe"?

I have read through the source, and it seems that all chat is done on a single private channel called 'private-chatify'. On this channel, all messages are sent. That would also mean that if someone were to open developer tools (f12), select Network and then WS (Websockets), they would be able to see all messages sent? Yes the package does make sure you only see you own chat messages, but as that is done using Javascript, anyone can read ALL messages.

Installation for for Laravel over Nuxt.js

I took a look at the functionality in the YouTube demo video, looks nicely done.

My tech stack is Laravel (back end) talking to a Nuxt.js front-end. What are the steps needed to install this on Nuxt + Laravel? Would chatify work with that?

Target class [] does not exist

Hi, i've installed your package on my existing project and now when i try to access route i keep getting this error.

I am using laravel 7. Do you have any idea of how i can fix this problem?

How Find Users

When I try to search for a user in the chat, nothing is thrown at me,
I modify the value to search for another
MessagesController.php
Captura de pantalla de 2020-09-23 13-30-07
Client view
Captura de pantalla de 2020-09-23 13-31-57

database table structure

you did a great job but i have concern with database table structure. becoz after few months or year table became heavy and query will take to much time. may you use conversation table a messages table structure i hope it will work fast..

Target class [] does not exist.

Hi, i've installed your repository on my existing project and now when i try to log in or register an account i keep getting this error, i am using laravel 7... Do you have any idea of how i can fix this problem?

Chatify v2.0

Hi Thanks for this great package.
How soon do you upgrade to Chatify v2.0?

support for multi auth system

i have two type of user and I need to use different guard for both user and sure two different table
so I need to use trait for each model of user but the package I think it support only one model ..

Failed to fetch messages! Laravel 7

after a fresh installation, everything is working perfectly. However, when I create conversations with 2 users it is unable to fetch the messages for each conversation.
Laravel version:7
How to reproduce the error:
-after installation on a fresh laravel 7 project
-create a conversation with one user
-then create another conversation with another user
-now we have 3 actives users
-send messages to the other 2 users
-logout and login again
-then click on any conversation to open:
the error will be display on the console:
"Failed to fetch messages! check your server response. @ code.js:434"
"Failed to load resource: the server responded with a status of 500 (Internal Server Error)"
"message: "Trying to get property 'attachment' of non-object"
exception: "ErrorException"
file: "D:\xamp\htdocs\chatify\chatify\vendor\munafio\chatify\src\ChatifyMessenger.php"
line: 115"

sending offline messages as emails

This is a required improvement for this great package. Do you have any idea how to implement it? If you have a solution I am here to develop it and start a pull request. I am sure most of the users want to have it

Search message

Hi! i love you chatify but it will be more userful if you can add search for message we sent and maybe add liked massage.thank you

laravel echo

Hi, does it work with laravel echo instead of pusher?

Assets Missing 404 Error

I just tried to use chatify but I am getting 404 error for all assets, do I need to change anything?
image

Laravel 8 version

I have integrated this package in laravel 8. But after following this instruction I had to do extra two things is below:

  1. copy CSS & js folder from vendor\munafio\chatify\assets and paste to the public folder in the root of my app and
  2. As per laravel 8, I had to change
    use App\Models\User; to use App\Models\User;
    in the MessagesController.php file in the folder ofvendor\munafio\chatify\src\Http\Controllers
    Now it is working like laravel 6 version.
    You can clone this demo: https://github.com/Haronur/chat-app-with-Laravel

Push Notification's? PWA?

Hi,

Is there any possibility for having push notifications when a new message has been sent?

Thanks

Published changes in tag controller not working in chatify

This still need to edit directly to package vendor ? I tried to publish the controllers base on the direction given but once I've change some stuff in the controllers or assets still not appllying any changes. What would I do with that ? Can anyone can help me out of this ?

Trying to get property 'dark_mode' of non-object

Tring to get an error "Trying to get property 'dark_mode' of non-object" when I load the inbox page.

Here is the piece of my message controller
return view('Chatify::pages.app', [ 'id' => ($id == null) ? 0 : $route . '_' . $id, 'route' => $route, 'messengerColor' => isset(Auth::user()->messenger_color)?Auth::user()->messenger_color:' ', 'dark_mode' => Auth::user()->dark_mode < 1 ? 'light' : 'dark', ]); }

Every user can see all users, even the admin

Please how can i customize the app to only view specific users.

I don't want the authenticated user to view everyone, i want to be able to specify which users an authenticated user sees.

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.