格式化代码

This commit is contained in:
iVampireSP.com 2023-02-02 13:14:25 +08:00
parent 1e3dd8c979
commit 0e27e81924
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132
2 changed files with 1 additions and 6 deletions

View File

@ -5,17 +5,12 @@
// use App\Helpers\ApiResponse; // use App\Helpers\ApiResponse;
use App\Http\Controllers\Controller; use App\Http\Controllers\Controller;
use App\Models\User;
use App\Notifications\User\UserNotification; use App\Notifications\User\UserNotification;
use function back; use function back;
use function config; use function config;
use GuzzleHttp\Client;
use GuzzleHttp\Exception\ClientException;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Http\RedirectResponse; use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Str;
use Illuminate\View\View; use Illuminate\View\View;
use function redirect; use function redirect;
use function session; use function session;

View File

@ -15,7 +15,7 @@ public function up(): void
{ {
Schema::table('users', function (Blueprint $table) { Schema::table('users', function (Blueprint $table) {
// if it has column `deleted_at`, skip // if it has column `deleted_at`, skip
if (!Schema::hasColumn('users', 'deleted_at')) { if (! Schema::hasColumn('users', 'deleted_at')) {
$table->softDeletes(); $table->softDeletes();
} }
}); });