update api jwt
This commit is contained in:
parent
db21f8a923
commit
07971a6b60
|
|
@ -0,0 +1,23 @@
|
|||
<?php namespace Atash\Contact\Updates;
|
||||
|
||||
use Schema;
|
||||
use October\Rain\Database\Updates\Migration;
|
||||
|
||||
class BuilderTableUpdateAtashContactCredit4 extends Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
Schema::table('atash_contact_credit', function($table)
|
||||
{
|
||||
$table->string('passport_date', 191)->nullable()->change();
|
||||
});
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
Schema::table('atash_contact_credit', function($table)
|
||||
{
|
||||
$table->string('passport_date', 191)->nullable(false)->change();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
@ -36,3 +36,6 @@
|
|||
1.0.13:
|
||||
- 'Updated table atash_contact_online_card'
|
||||
- builder_table_update_atash_contact_online_card_3.php
|
||||
1.0.14:
|
||||
- 'Updated table atash_contact_credit'
|
||||
- builder_table_update_atash_contact_credit_4.php
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ Route::group(['prefix' => 'api'], function() {
|
|||
|
||||
$me = \JWTAuth::parseToken()->authenticate()
|
||||
// ->only(['email', 'password', 'password_confirmation']);
|
||||
->only(['online_card','online_credit','message','email','surname','name','middle_name','date_birth','passport','place_passport','address_residence','mobile_phone','home_phone','username']);
|
||||
->only(['online_card','online_credit','message','email','surname','name','middle_name','date_birth','passport','place_passport','address_residence','mobile_phone','home_phone','username','is_activated']);
|
||||
|
||||
return Response::json(compact('me'));
|
||||
|
||||
|
|
@ -313,7 +313,7 @@ Route::group(['prefix' => 'api'], function() {
|
|||
$mobile_phone = $Credit->mobile_phone =Input::get('mobile_phone');
|
||||
$home_phone = $Credit->home_phone =Input::get('home_phone');
|
||||
$passport_series = $Credit->passport_series =Input::get('passport_series');
|
||||
$passport_date = $Credit->passport_date =Input::get('passport_date');
|
||||
// $passport_date = $Credit->passport_date =Input::get('passport_date');
|
||||
$passport_issued_by = $Credit->passport_issued_by =Input::get('passport_issued_by');
|
||||
$region = $Credit->region =Input::get('region');
|
||||
$place_of_work = $Credit->place_of_work =Input::get('place_of_work');
|
||||
|
|
@ -348,7 +348,7 @@ Route::group(['prefix' => 'api'], function() {
|
|||
'home_phone_number',
|
||||
'email',
|
||||
'passport_series',
|
||||
'date_of_passport',
|
||||
// 'date_of_passport',
|
||||
'passport_by',
|
||||
'sms_notification',
|
||||
'place_of_residence',
|
||||
|
|
|
|||
Loading…
Reference in New Issue