Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
7cb7954
Start adding feature: conversation with title
damms005 Aug 16, 2018
5257a68
minor changes - nothing to care about :)
damms005 Aug 17, 2018
6222128
fixed bugs
damms005 Aug 17, 2018
9b09dfc
added 'ago' to humans_time
damms005 Aug 17, 2018
cc58e42
users can now maintain multiple conversations
damms005 Aug 17, 2018
d36b1d3
improvment on ser-to-user multi-conversation
damms005 Aug 17, 2018
bfaf5d7
done adding feature: mark readable
damms005 Aug 17, 2018
62406fe
updates on tags and other enhancements
damms005 Aug 18, 2018
c891989
updates
damms005 Aug 19, 2018
9702ec7
bug fix
damms005 Aug 19, 2018
34cd4ba
bug fixes
damms005 Aug 19, 2018
6827d47
feature_add_star stage 1
damms005 Aug 20, 2018
b0c86ed
bug fixes
damms005 Sep 16, 2018
1fd6f77
updates to tagging of conversations
damms005 Sep 21, 2018
2ac6c5d
bug fixes, better explanations
damms005 Sep 23, 2018
2f748c8
correct PR#135 with more naturalisic time modifier. Some more fixes
damms005 Oct 14, 2018
dac03fd
bug fixes and some more adjustments based on PR#35
damms005 Oct 14, 2018
13a21f3
improvment on ser-to-user multi-conversation
damms005 Aug 17, 2018
25b8f92
bug fixes
damms005 Oct 14, 2018
4fc6326
code formatting to ensure consistency in coding style
damms005 Mar 5, 2019
c28802b
code formatting to ensure consistency in coding style
damms005 Mar 5, 2019
ffd74cf
code formatting to ensure consistency in coding style
damms005 Mar 5, 2019
cc36906
Merge branch 'feature_add_star'
damms005 Mar 5, 2019
1905f62
Merge branch 'feature_tag_conversation' into feature_mark_readable
damms005 Mar 5, 2019
0f52e06
Merge branch 'feature_mark_readable'
damms005 Mar 5, 2019
51731fd
Merge remote-tracking branch 'remotes/upstream/master'
damms005 Mar 5, 2019
eb5d39d
Renamed migration class appropriately
damms005 Mar 5, 2019
a222dd5
fix 'Tags\Tag' namespace
damms005 Mar 7, 2019
80d71c0
Initial WhiteSource configuration file
Mar 7, 2019
ebc2d1f
fixed name of migration file to match migration class name
damms005 Jun 26, 2019
c597f04
Merge branch 'master' of https://github.com/damms005/talk
damms005 Jun 26, 2019
3c4b8ac
Merge remote-tracking branch 'upstream/master' into master_merge_remo…
damms005 Mar 28, 2020
0994487
refactors and minor code cleanups
damms005 Mar 28, 2020
0d742f8
some bug fixes
damms005 Mar 28, 2020
f2c5867
more refactors and minor code cleanups
damms005 Mar 28, 2020
53394af
fix migration files for messages table and minor changes
damms005 Mar 28, 2020
527cb5b
fix src/Embera/Adapter.php according to https://github.com/nahid/talk…
damms005 Mar 28, 2020
67a816d
fix migration errors
damms005 Mar 28, 2020
b2b09f1
remove formats done to non-concerned filed
damms005 Mar 28, 2020
964996a
updat readme, improve code readability and bug fixes
damms005 Mar 28, 2020
51be475
add method to make sending notifications easy
damms005 Mar 29, 2020
1b888fc
rename newly added migration files
damms005 Mar 29, 2020
f6ee27f
allow broadcasted notification to be lighter by making unecessary det…
damms005 Mar 29, 2020
b10fbd4
make user_id nullable in tags table
damms005 Mar 30, 2020
d329de0
fix sql bug in get message by tag id
damms005 Mar 30, 2020
8705a2d
improve the Tags feature
damms005 Mar 30, 2020
7864889
properly implement getStarredConversations()
damms005 Mar 30, 2020
6b8a46c
fix migration rillback for conversation_tag table
damms005 Apr 5, 2020
aadd0c6
Add support for Laravel 8
damms005 Dec 5, 2020
cad70fc
Add damms005 fork of sebastian-berc/repositories
damms005 Dec 5, 2020
6db329d
Allow migrations to be runnable using loadMigrationsFrom()
damms005 Dec 5, 2020
6f136dd
Create database migrtation for tagged_messages table
damms005 Dec 5, 2020
c399e2e
Added PHP 8 to composer.json
damms005 Jul 25, 2021
4ae86d3
Bumped pusher/pusher-php-server to ^7.0
damms005 Jul 25, 2021
25857fa
Bump dependencies: illumisate support and PHP
damms005 Dec 25, 2022
78220fc
use an updated fork of sebastian-berc/repositories
damms005 Dec 25, 2022
0c0b79f
Remove Sebastian Repository package implementations
damms005 Dec 25, 2022
9bd0d13
Bug fix
damms005 Dec 25, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{
}
8 changes: 8 additions & 0 deletions .whitesource
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
##########################################################
#### WhiteSource Integration configuration file ####
##########################################################

# Configuration #
#---------------#
ws.repo.scan=true
vulnerable.check.run.conclusion.level=failure
261 changes: 157 additions & 104 deletions README.md

Large diffs are not rendered by default.

58 changes: 33 additions & 25 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,30 @@
{
"name": "nahid/talk",
"description": "Talk is a Laravel 5 based realtime messaging, chatting and conversation system. It helps to develop users messaging, chatting and conversations in easy way.",
"keywords": ["message", "inbox", "conversations", "chat", "php", "laravel", "realtime", "real-time"],
"homepage": "https://github.com/nahid/talk",
"license": "CC-BY-3.0",
"authors": [
{
"name": "Nahid Bin Azhar",
"email": "[email protected]"
}
],
"name": "nahid/talk",
"description": "Talk is a Laravel 5 based realtime messaging, chatting and conversation system. It helps to develop users messaging, chatting and conversations in easy way.",
"keywords": [
"message",
"inbox",
"conversations",
"chat",
"php",
"laravel",
"realtime",
"real-time"
],
"homepage": "https://github.com/nahid/talk",
"license": "CC-BY-3.0",
"authors": [
{
"name": "Nahid Bin Azhar",
"email": "[email protected]"
}
],
"require": {
"php": "^5.6 || ^7.0 || ^7.1 || ^7.2",
"illuminate/contracts": ">=5.1.0",
"php": ">=5.6",
"illuminate/contracts": ">=5.1",
"illuminate/support": ">=5.1.0",
"sebastian-berc/repositories": "^1.0",
"nesbot/carbon": "^2.22",
"pusher/pusher-php-server": "^3.0",
"pusher/pusher-php-server": "^7.0",
"predis/predis": "~1.1.1",
"mpratt/embera": "^1.9"
},
Expand All @@ -38,16 +46,16 @@
"Nahid\\Talk\\Tests\\": "tests"
}
},
"extra": {
"laravel": {
"providers": [
"Nahid\\Talk\\TalkServiceProvider"
],
"aliases": {
"Talk": "Nahid\\Talk\\Facades\\Talk"
}
}
},
"extra": {
"laravel": {
"providers": [
"Nahid\\Talk\\TalkServiceProvider"
],
"aliases": {
"Talk": "Nahid\\Talk\\Facades\\Talk"
}
}
},
"minimum-stability": "dev",
"prefer-stable": true
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Migrations\Migration;
Use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateMessagesTable extends Migration
{
/**
* Run the migrations.
*
*
* @return void
*/
public function up()
Expand All @@ -27,7 +27,7 @@ public function up()

/**
* Reverse the migrations.
*
*
* @return void
*/
public function down()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Migrations\Migration;
Use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateConversationsTable extends Migration
{
/**
* Run the migrations.
*
*
* @return void
*/
public function up()
Expand All @@ -24,7 +24,7 @@ public function up()

/**
* Reverse the migrations.
*
*
* @return void
*/
public function down()
Expand Down
36 changes: 36 additions & 0 deletions database/migrations/2018_11_10_161442_create_tags_table.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTagsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('tags', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->integer('user_id')->unsigned()->nullable();
$table->integer('is_special_tag')->default('0');
$table->timestamps();

$table->foreign('user_id')->references('id')->on('users');
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('tags');
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTaggedMessagesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('tagged_messages', function (Blueprint $table) {
$table->increments('id');
$table->integer('message_id')->unsigned()->unique();
$table->integer('tag_from_id')->unsigned()->nullable();
$table->integer('tag_to_id')->unsigned()->nullable();
$table->timestamps();

$table->foreign('message_id')->references('id')->on('messages');

$table->foreign('tag_from_id')->references('id')->on('tags');
$table->foreign('tag_to_id')->references('id')->on('tags');

});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('tagged_messages');
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateConversationTagsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('conversation_tag', function (Blueprint $table) {
$table->increments('id');
$table->integer('conversation_id');
$table->integer('tag_id');
$table->timestamps();
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('conversation_tag');
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddTitleColumnToConversationsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('conversations', function (Blueprint $table) {
$table->string('title');
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('conversations', function (Blueprint $table) {
$table->dropColumn('title');
});
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddIsReadColumnToConversationsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('conversations', function (Blueprint $table) {
$table->boolean('is_read')->default(0);
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('conversations', function (Blueprint $table) {
$table->dropColumn('is_read');
});
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddIsReadColumnToMessagesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('messages', function (Blueprint $table) {
$table->boolean('is_read')->default(0);
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('messages', function (Blueprint $table) {
$table->dropColumn('is_read');
});
}
}
Loading