mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2025-03-07 15:16:40 +08:00
Simplify importing Auth
This commit is contained in:
parent
be86f161a2
commit
3264e376cb
@ -2,7 +2,9 @@
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Auth;
|
||||
use Cache;
|
||||
use Redis;
|
||||
use Option;
|
||||
use Notification;
|
||||
use Carbon\Carbon;
|
||||
@ -16,8 +18,6 @@ use App\Services\OptionForm;
|
||||
use Illuminate\Http\Request;
|
||||
use App\Services\PluginManager;
|
||||
use Illuminate\Support\Collection;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Redis;
|
||||
|
||||
class AdminController extends Controller
|
||||
{
|
||||
|
@ -3,6 +3,7 @@
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use URL;
|
||||
use Auth;
|
||||
use Mail;
|
||||
use View;
|
||||
use Cache;
|
||||
@ -13,7 +14,6 @@ use App\Models\Player;
|
||||
use App\Rules\Captcha;
|
||||
use App\Mail\ForgotPassword;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use App\Exceptions\PrettyPageException;
|
||||
|
||||
class AuthController extends Controller
|
||||
|
@ -2,10 +2,10 @@
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Auth;
|
||||
use App\Models\User;
|
||||
use App\Models\Texture;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
|
||||
class ClosetController extends Controller
|
||||
{
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Auth;
|
||||
use View;
|
||||
use Event;
|
||||
use Option;
|
||||
@ -16,7 +17,6 @@ use App\Events\PlayerWasDeleted;
|
||||
use App\Events\CheckPlayerExists;
|
||||
use App\Events\PlayerWillBeAdded;
|
||||
use App\Events\PlayerWillBeDeleted;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use App\Http\Middleware\CheckPlayerExist;
|
||||
use App\Http\Middleware\CheckPlayerOwner;
|
||||
use Illuminate\Contracts\Events\Dispatcher;
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Auth;
|
||||
use View;
|
||||
use Option;
|
||||
use Session;
|
||||
@ -11,7 +12,6 @@ use App\Models\Player;
|
||||
use App\Models\Texture;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Http\JsonResponse;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
|
||||
class SkinlibController extends Controller
|
||||
{
|
||||
|
@ -4,6 +4,7 @@ namespace App\Http\Controllers;
|
||||
|
||||
use App;
|
||||
use URL;
|
||||
use Auth;
|
||||
use Mail;
|
||||
use View;
|
||||
use Session;
|
||||
@ -13,7 +14,6 @@ use App\Models\Texture;
|
||||
use Illuminate\Http\Request;
|
||||
use App\Mail\EmailVerification;
|
||||
use App\Events\UserProfileUpdated;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
|
||||
class UserController extends Controller
|
||||
{
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Auth;
|
||||
|
||||
class RedirectIfAuthenticated
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user