add
This commit is contained in:
@@ -13,7 +13,7 @@ trait VisaMasterAuth
|
||||
{
|
||||
$user = auth()->user();
|
||||
|
||||
if ($user->isSystemUser()) {
|
||||
if ($user->isMe()) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ trait VisaMasterAuth
|
||||
{
|
||||
$user = auth()->user();
|
||||
|
||||
if ($user->isSystemUser()) {
|
||||
if ($user->isMe()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ trait VisaMasterAuth
|
||||
{
|
||||
$user = auth()->user();
|
||||
|
||||
if ($user->isSystemUser()) {
|
||||
if ($user->isMe()) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ trait VisaMasterAuth
|
||||
{
|
||||
$user = auth()->user();
|
||||
|
||||
if ($user->isSystemUser()) {
|
||||
if ($user->isMe()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ trait VisaMasterAuth
|
||||
{
|
||||
$user = auth()->user();
|
||||
|
||||
if ($user->isSystemUser()) {
|
||||
if ($user->isMe()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('visa_master_payment_orders', function (Blueprint $table) {
|
||||
$table->string('sender_full_name')->nullable();
|
||||
$table->string('sender_passport_serie')->nullable();
|
||||
$table->string('sender_passport_number')->nullable();
|
||||
$table->string('sender_deposit_account')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('visa_master_payment_orders', function (Blueprint $table) {
|
||||
$table->dropColumn('sender_full_name');
|
||||
$table->dropColumn('sender_passport_serie');
|
||||
$table->dropColumn('sender_passport_number');
|
||||
$table->dropColumn('sender_deposit_account');
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user