Skip to content

Commit 2bcb766

Browse files
authored
Merge pull request #17 from php-kchat/dev
Dev
2 parents 149fcf6 + ed3476c commit 2bcb766

File tree

4 files changed

+32
-16
lines changed

4 files changed

+32
-16
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

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

44
# KChat
55
#### PHP Based Chat Application.

app/Http/Controllers/AuthController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ function signon(Request $request)
3030
'phone' => $data['phone'],
3131
'password' => Hash::make($data['password']),
3232
'created_at' => now(),
33+
'updated_at' => now(),
3334
]);
3435

3536
if($id == 1){
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Support\Facades\Schema;
6+
7+
return new class extends Migration
8+
{
9+
/**
10+
* Run the migrations.
11+
*
12+
* @return void
13+
*/
14+
public function up()
15+
{
16+
Schema::table('users', function(Blueprint $table){
17+
$table->bigInteger('role')->unsigned()->change();
18+
});
19+
}
20+
21+
/**
22+
* Reverse the migrations.
23+
*
24+
* @return void
25+
*/
26+
public function down()
27+
{
28+
//
29+
}
30+
};

public/js/kchat.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -278,21 +278,6 @@ function __post(url,posts){
278278
});
279279
}
280280

281-
function __post(url,posts,ids){
282-
Data = {};
283-
Data['ids'] = posts;
284-
Data['_token'] = $('meta[name="csrf_token"]').attr('content');
285-
Data = $.extend({}, Data, ids);
286-
$.ajax({
287-
type: "POST",
288-
url: url,
289-
data: Data,
290-
success: function(result){
291-
location.reload();
292-
}
293-
});
294-
}
295-
296281
/*
297282
---------------------------------------------------------------------
298283
to get relative time

0 commit comments

Comments
 (0)