Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #17

Merged
merged 3 commits into from
May 4, 2023
Merged

Dev #17

Show file tree
Hide file tree
Changes from all commits
Commits
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: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

![](https://github.com/php-kchat/kchat/blob/master/public/logo/KChat_Logo.svg)
![](https://github.com/php-kchat/kchat/blob/master/public/logo/3.svg)

# KChat
#### PHP Based Chat Application.
Expand Down
1 change: 1 addition & 0 deletions app/Http/Controllers/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ function signon(Request $request)
'phone' => $data['phone'],
'password' => Hash::make($data['password']),
'created_at' => now(),
'updated_at' => now(),
]);

if($id == 1){
Expand Down
30 changes: 30 additions & 0 deletions database/migrations/2023_05_04_150324_alter_users_table.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

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

return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('users', function(Blueprint $table){
$table->bigInteger('role')->unsigned()->change();
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
};
15 changes: 0 additions & 15 deletions public/js/kchat.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,21 +278,6 @@ function __post(url,posts){
});
}

function __post(url,posts,ids){
Data = {};
Data['ids'] = posts;
Data['_token'] = $('meta[name="csrf_token"]').attr('content');
Data = $.extend({}, Data, ids);
$.ajax({
type: "POST",
url: url,
data: Data,
success: function(result){
location.reload();
}
});
}

/*
---------------------------------------------------------------------
to get relative time
Expand Down