重新格式化代码 pint
This commit is contained in:
parent
bd91661fd4
commit
77bafa4f90
@ -24,8 +24,6 @@ class All extends Command
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function handle(): int
|
||||
{
|
||||
|
@ -24,8 +24,6 @@ class Create extends Command
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function handle(): int
|
||||
{
|
||||
|
@ -24,8 +24,6 @@ class Delete extends Command
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function handle(): int
|
||||
{
|
||||
|
@ -24,8 +24,6 @@ class Reset extends Command
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function handle(): int
|
||||
{
|
||||
|
@ -33,8 +33,6 @@ public function __construct()
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function handle(): int
|
||||
{
|
||||
|
@ -33,8 +33,6 @@ public function __construct()
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function handle(): int
|
||||
{
|
||||
|
@ -24,8 +24,6 @@ class CleanOffline extends Command
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function handle(): int
|
||||
{
|
||||
|
@ -24,8 +24,6 @@ class Monitor extends Command
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function handle(): int
|
||||
{
|
||||
|
@ -24,8 +24,6 @@ class PublishEdge extends Command
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function handle(): int
|
||||
{
|
||||
|
@ -24,8 +24,6 @@ class Restart extends Command
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function handle(): int
|
||||
{
|
||||
|
@ -27,8 +27,6 @@ class Sync extends Command
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function handle(): int
|
||||
{
|
||||
|
@ -26,8 +26,6 @@ class Upload extends Command
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function handle(): int
|
||||
{
|
||||
|
@ -24,8 +24,6 @@ class Weight extends Command
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function handle(): int
|
||||
{
|
||||
|
@ -28,8 +28,6 @@ class Work extends Command
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function handle(): int
|
||||
{
|
||||
|
@ -38,8 +38,6 @@ public function __construct()
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function handle(): int
|
||||
{
|
||||
|
@ -35,8 +35,6 @@ public function __construct()
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function handle(): int
|
||||
{
|
||||
|
@ -24,8 +24,6 @@ class HostCost extends Command
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function handle(): int
|
||||
{
|
||||
|
@ -34,8 +34,6 @@ public function __construct()
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function handle(): int
|
||||
{
|
||||
|
@ -34,8 +34,6 @@ public function __construct()
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function handle(): int
|
||||
{
|
||||
|
@ -33,8 +33,6 @@ public function __construct()
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function handle(): void
|
||||
{
|
||||
|
@ -26,8 +26,6 @@ class Test extends Command
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function handle(): int
|
||||
{
|
||||
|
@ -33,8 +33,6 @@ public function __construct()
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function handle(): void
|
||||
{
|
||||
|
@ -34,8 +34,6 @@ public function __construct()
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function handle(): int
|
||||
{
|
||||
|
@ -21,9 +21,6 @@ class Kernel extends ConsoleKernel
|
||||
{
|
||||
/**
|
||||
* Define the application's command schedule.
|
||||
*
|
||||
* @param Schedule $schedule
|
||||
* @return void
|
||||
*/
|
||||
protected function schedule(Schedule $schedule): void
|
||||
{
|
||||
@ -68,8 +65,6 @@ protected function schedule(Schedule $schedule): void
|
||||
|
||||
/**
|
||||
* Register the commands for the application.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function commands(): void
|
||||
{
|
||||
|
@ -14,8 +14,6 @@ class Tasks
|
||||
|
||||
/**
|
||||
* Get the channels the event should broadcast on.
|
||||
*
|
||||
* @return Channel|PrivateChannel
|
||||
*/
|
||||
public function broadcastOn(): Channel|PrivateChannel
|
||||
{
|
||||
|
@ -68,8 +68,6 @@ public function register(): void
|
||||
* Convert an authentication exception into an unauthenticated response.
|
||||
*
|
||||
* @param Request $request
|
||||
* @param AuthenticationException $exception
|
||||
* @return JsonResponse|RedirectResponse
|
||||
*/
|
||||
protected function unauthenticated($request, AuthenticationException $exception): JsonResponse|RedirectResponse
|
||||
{
|
||||
|
@ -17,8 +17,6 @@ trait AuthenticatesUsers
|
||||
|
||||
/**
|
||||
* Show the application's login form.
|
||||
*
|
||||
* @return View
|
||||
*/
|
||||
public function showLoginForm(): View
|
||||
{
|
||||
@ -28,8 +26,6 @@ public function showLoginForm(): View
|
||||
/**
|
||||
* Handle a login request to the application.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return Response
|
||||
*
|
||||
* @throws ValidationException
|
||||
*/
|
||||
@ -66,8 +62,6 @@ public function login(Request $request): Response
|
||||
/**
|
||||
* Validate the user login request.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return void
|
||||
*
|
||||
* @throws ValidationException
|
||||
*/
|
||||
@ -81,8 +75,6 @@ protected function validateLogin(Request $request): void
|
||||
|
||||
/**
|
||||
* Get the login username to be used by the controller.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function username(): string
|
||||
{
|
||||
@ -91,9 +83,6 @@ public function username(): string
|
||||
|
||||
/**
|
||||
* Attempt to log the user into the application.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return bool
|
||||
*/
|
||||
protected function attemptLogin(Request $request): bool
|
||||
{
|
||||
@ -104,8 +93,6 @@ protected function attemptLogin(Request $request): bool
|
||||
|
||||
/**
|
||||
* Get the guard to be used during authentication.
|
||||
*
|
||||
* @return StatefulGuard
|
||||
*/
|
||||
protected function guard(): StatefulGuard
|
||||
{
|
||||
@ -114,9 +101,6 @@ protected function guard(): StatefulGuard
|
||||
|
||||
/**
|
||||
* Get the needed authorization credentials from the request.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return array
|
||||
*/
|
||||
protected function credentials(Request $request): array
|
||||
{
|
||||
@ -125,9 +109,6 @@ protected function credentials(Request $request): array
|
||||
|
||||
/**
|
||||
* Send the response after the user was authenticated.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return JsonResponse|RedirectResponse
|
||||
*/
|
||||
protected function sendLoginResponse(Request $request): JsonResponse|RedirectResponse
|
||||
{
|
||||
@ -148,7 +129,6 @@ protected function sendLoginResponse(Request $request): JsonResponse|RedirectRes
|
||||
* Get the failed login response instance.
|
||||
*
|
||||
*
|
||||
* @return Response
|
||||
*
|
||||
* @throws ValidationException
|
||||
*/
|
||||
@ -161,9 +141,6 @@ protected function sendFailedLoginResponse(): Response
|
||||
|
||||
/**
|
||||
* Log the user out of the application.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return RedirectResponse|JsonResponse
|
||||
*/
|
||||
public function logout(Request $request): JsonResponse|RedirectResponse
|
||||
{
|
||||
@ -184,10 +161,6 @@ public function logout(Request $request): JsonResponse|RedirectResponse
|
||||
|
||||
/**
|
||||
* The user has been authenticated.
|
||||
*
|
||||
* @param Request $request
|
||||
* @param mixed $user
|
||||
* @return void
|
||||
*/
|
||||
protected function authenticated(Request $request, mixed $user): void
|
||||
{
|
||||
@ -196,9 +169,6 @@ protected function authenticated(Request $request, mixed $user): void
|
||||
|
||||
/**
|
||||
* The user has logged out of the application.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return void
|
||||
*/
|
||||
protected function loggedOut(Request $request): void
|
||||
{
|
||||
|
@ -13,8 +13,6 @@ trait ConfirmsPasswords
|
||||
|
||||
/**
|
||||
* Display the password confirmation view.
|
||||
*
|
||||
* @return View
|
||||
*/
|
||||
public function showConfirmForm(): View
|
||||
{
|
||||
@ -23,9 +21,6 @@ public function showConfirmForm(): View
|
||||
|
||||
/**
|
||||
* Confirm the given user's password.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return RedirectResponse|JsonResponse
|
||||
*/
|
||||
public function confirm(Request $request): JsonResponse|RedirectResponse
|
||||
{
|
||||
@ -40,8 +35,6 @@ public function confirm(Request $request): JsonResponse|RedirectResponse
|
||||
|
||||
/**
|
||||
* Get the password confirmation validation rules.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
protected function rules(): array
|
||||
{
|
||||
@ -52,8 +45,6 @@ protected function rules(): array
|
||||
|
||||
/**
|
||||
* Get the password confirmation validation error messages.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
protected function validationErrorMessages(): array
|
||||
{
|
||||
@ -62,9 +53,6 @@ protected function validationErrorMessages(): array
|
||||
|
||||
/**
|
||||
* Reset the password confirmation timeout.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return void
|
||||
*/
|
||||
protected function resetPasswordConfirmationTimeout(Request $request): void
|
||||
{
|
||||
|
@ -6,8 +6,6 @@ trait RedirectsUsers
|
||||
{
|
||||
/**
|
||||
* Get the post register / login redirect path.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function redirectPath(): string
|
||||
{
|
||||
|
@ -16,8 +16,6 @@ trait RegistersUsers
|
||||
|
||||
/**
|
||||
* Show the application registration form.
|
||||
*
|
||||
* @return View
|
||||
*/
|
||||
public function showRegistrationForm(): View
|
||||
{
|
||||
@ -26,9 +24,6 @@ public function showRegistrationForm(): View
|
||||
|
||||
/**
|
||||
* Handle a registration request for the application.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return RedirectResponse|JsonResponse
|
||||
*/
|
||||
public function register(Request $request): JsonResponse|RedirectResponse
|
||||
{
|
||||
@ -49,8 +44,6 @@ public function register(Request $request): JsonResponse|RedirectResponse
|
||||
|
||||
/**
|
||||
* Get the guard to be used during registration.
|
||||
*
|
||||
* @return StatefulGuard
|
||||
*/
|
||||
protected function guard(): StatefulGuard
|
||||
{
|
||||
@ -59,10 +52,6 @@ protected function guard(): StatefulGuard
|
||||
|
||||
/**
|
||||
* The user has been registered.
|
||||
*
|
||||
* @param Request $request
|
||||
* @param mixed $user
|
||||
* @return void
|
||||
*/
|
||||
protected function registered(Request $request, mixed $user): void
|
||||
{
|
||||
|
@ -27,9 +27,6 @@ trait ResetsPasswords
|
||||
* Display the password reset view for the given token.
|
||||
*
|
||||
* If no token is present, display the link request form.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return Factory|View
|
||||
*/
|
||||
public function showResetForm(Request $request): Factory|View
|
||||
{
|
||||
@ -42,9 +39,6 @@ public function showResetForm(Request $request): Factory|View
|
||||
|
||||
/**
|
||||
* Reset the given user's password.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return RedirectResponse|JsonResponse
|
||||
*/
|
||||
public function reset(Request $request): JsonResponse|RedirectResponse
|
||||
{
|
||||
@ -74,8 +68,6 @@ public function reset(Request $request): JsonResponse|RedirectResponse
|
||||
|
||||
/**
|
||||
* Get the password reset validation rules.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
protected function rules(): array
|
||||
{
|
||||
@ -88,8 +80,6 @@ protected function rules(): array
|
||||
|
||||
/**
|
||||
* Get the password reset validation error messages.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
protected function validationErrorMessages(): array
|
||||
{
|
||||
@ -98,8 +88,6 @@ protected function validationErrorMessages(): array
|
||||
|
||||
/**
|
||||
* Get the broker to be used during password reset.
|
||||
*
|
||||
* @return PasswordBroker
|
||||
*/
|
||||
public function broker(): PasswordBroker
|
||||
{
|
||||
@ -108,9 +96,6 @@ public function broker(): PasswordBroker
|
||||
|
||||
/**
|
||||
* Get the password reset credentials from the request.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return array
|
||||
*/
|
||||
protected function credentials(Request $request): array
|
||||
{
|
||||
@ -121,10 +106,6 @@ protected function credentials(Request $request): array
|
||||
|
||||
/**
|
||||
* Reset the given user's password.
|
||||
*
|
||||
* @param CanResetPassword|User $user
|
||||
* @param string $password
|
||||
* @return void
|
||||
*/
|
||||
protected function resetPassword(CanResetPassword|User $user, string $password): void
|
||||
{
|
||||
@ -141,10 +122,6 @@ protected function resetPassword(CanResetPassword|User $user, string $password):
|
||||
|
||||
/**
|
||||
* Set the user's password.
|
||||
*
|
||||
* @param CanResetPassword $user
|
||||
* @param string $password
|
||||
* @return void
|
||||
*/
|
||||
protected function setUserPassword(CanResetPassword $user, string $password): void
|
||||
{
|
||||
@ -156,8 +133,6 @@ protected function setUserPassword(CanResetPassword $user, string $password): vo
|
||||
|
||||
/**
|
||||
* Get the guard to be used during password reset.
|
||||
*
|
||||
* @return StatefulGuard
|
||||
*/
|
||||
protected function guard(): StatefulGuard
|
||||
{
|
||||
@ -166,10 +141,6 @@ protected function guard(): StatefulGuard
|
||||
|
||||
/**
|
||||
* Get the response for a successful password reset.
|
||||
*
|
||||
* @param Request $request
|
||||
* @param string $response
|
||||
* @return RedirectResponse|JsonResponse
|
||||
*/
|
||||
protected function sendResetResponse(Request $request, string $response): JsonResponse|RedirectResponse
|
||||
{
|
||||
@ -183,10 +154,6 @@ protected function sendResetResponse(Request $request, string $response): JsonRe
|
||||
|
||||
/**
|
||||
* Get the response for a failed password reset.
|
||||
*
|
||||
* @param Request $request
|
||||
* @param string $response
|
||||
* @return RedirectResponse
|
||||
*/
|
||||
protected function sendResetFailedResponse(Request $request, string $response): RedirectResponse
|
||||
{
|
||||
|
@ -14,8 +14,6 @@ trait SendsPasswordResetEmails
|
||||
{
|
||||
/**
|
||||
* Display the form to request a password reset link.
|
||||
*
|
||||
* @return View
|
||||
*/
|
||||
public function showLinkRequestForm(): View
|
||||
{
|
||||
@ -24,9 +22,6 @@ public function showLinkRequestForm(): View
|
||||
|
||||
/**
|
||||
* Send a reset link to the given user.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return RedirectResponse|JsonResponse
|
||||
*/
|
||||
public function sendResetLinkEmail(Request $request): JsonResponse|RedirectResponse
|
||||
{
|
||||
@ -46,9 +41,6 @@ public function sendResetLinkEmail(Request $request): JsonResponse|RedirectRespo
|
||||
|
||||
/**
|
||||
* Validate the email for the given request.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return void
|
||||
*/
|
||||
protected function validateEmail(Request $request): void
|
||||
{
|
||||
@ -57,8 +49,6 @@ protected function validateEmail(Request $request): void
|
||||
|
||||
/**
|
||||
* Get the broker to be used during password reset.
|
||||
*
|
||||
* @return PasswordBroker
|
||||
*/
|
||||
public function broker(): PasswordBroker
|
||||
{
|
||||
@ -67,9 +57,6 @@ public function broker(): PasswordBroker
|
||||
|
||||
/**
|
||||
* Get the needed authentication credentials from the request.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return array
|
||||
*/
|
||||
protected function credentials(Request $request): array
|
||||
{
|
||||
@ -78,10 +65,6 @@ protected function credentials(Request $request): array
|
||||
|
||||
/**
|
||||
* Get the response for a successful password reset link.
|
||||
*
|
||||
* @param Request $request
|
||||
* @param string $response
|
||||
* @return RedirectResponse|JsonResponse
|
||||
*/
|
||||
protected function sendResetLinkResponse(Request $request, string $response): JsonResponse|RedirectResponse
|
||||
{
|
||||
@ -93,9 +76,6 @@ protected function sendResetLinkResponse(Request $request, string $response): Js
|
||||
/**
|
||||
* Get the response for a failed password reset link.
|
||||
*
|
||||
* @param Request $request
|
||||
* @param string $response
|
||||
* @return RedirectResponse
|
||||
*
|
||||
* @throws ValidationException
|
||||
*/
|
||||
|
@ -13,9 +13,6 @@ trait ThrottlesLogins
|
||||
{
|
||||
/**
|
||||
* Determine if the user has too many failed login attempts.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return bool
|
||||
*/
|
||||
protected function hasTooManyLoginAttempts(Request $request): bool
|
||||
{
|
||||
@ -26,8 +23,6 @@ protected function hasTooManyLoginAttempts(Request $request): bool
|
||||
|
||||
/**
|
||||
* Get the rate limiter instance.
|
||||
*
|
||||
* @return RateLimiter
|
||||
*/
|
||||
protected function limiter(): RateLimiter
|
||||
{
|
||||
@ -36,9 +31,6 @@ protected function limiter(): RateLimiter
|
||||
|
||||
/**
|
||||
* Get the throttle key for the given request.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return string
|
||||
*/
|
||||
protected function throttleKey(Request $request): string
|
||||
{
|
||||
@ -47,8 +39,6 @@ protected function throttleKey(Request $request): string
|
||||
|
||||
/**
|
||||
* Get the maximum number of attempts to allow.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function maxAttempts(): int
|
||||
{
|
||||
@ -57,9 +47,6 @@ public function maxAttempts(): int
|
||||
|
||||
/**
|
||||
* Increment the login attempts for the user.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return void
|
||||
*/
|
||||
protected function incrementLoginAttempts(Request $request): void
|
||||
{
|
||||
@ -70,8 +57,6 @@ protected function incrementLoginAttempts(Request $request): void
|
||||
|
||||
/**
|
||||
* Get the number of minutes to throttle for.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function decayMinutes(): int
|
||||
{
|
||||
@ -81,8 +66,6 @@ public function decayMinutes(): int
|
||||
/**
|
||||
* Redirect the user after determining they are locked out.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return ResponseAlias
|
||||
*
|
||||
* @throws ValidationException
|
||||
*/
|
||||
@ -102,9 +85,6 @@ protected function sendLockoutResponse(Request $request): ResponseAlias
|
||||
|
||||
/**
|
||||
* Clear the login locks for the given user credentials.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return void
|
||||
*/
|
||||
protected function clearLoginAttempts(Request $request): void
|
||||
{
|
||||
@ -113,9 +93,6 @@ protected function clearLoginAttempts(Request $request): void
|
||||
|
||||
/**
|
||||
* Fire an event when a lockout occurs.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return void
|
||||
*/
|
||||
protected function fireLockoutEvent(Request $request): void
|
||||
{
|
||||
|
@ -15,9 +15,6 @@ trait VerifiesEmails
|
||||
|
||||
/**
|
||||
* Show the email verification notice.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return RedirectResponse|View
|
||||
*/
|
||||
public function show(Request $request): View|RedirectResponse
|
||||
{
|
||||
@ -29,8 +26,6 @@ public function show(Request $request): View|RedirectResponse
|
||||
/**
|
||||
* Mark the authenticated user's email address as verified.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return JsonResponse|RedirectResponse
|
||||
*
|
||||
* @throws AuthorizationException
|
||||
*/
|
||||
@ -65,9 +60,6 @@ public function verify(Request $request): JsonResponse|RedirectResponse
|
||||
|
||||
/**
|
||||
* Resend the email verification notification.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return JsonResponse|RedirectResponse
|
||||
*/
|
||||
public function resend(Request $request): JsonResponse|RedirectResponse
|
||||
{
|
||||
@ -86,9 +78,6 @@ public function resend(Request $request): JsonResponse|RedirectResponse
|
||||
|
||||
/**
|
||||
* The user has been verified.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return void
|
||||
*/
|
||||
protected function verified(Request $request): void
|
||||
{
|
||||
|
@ -13,8 +13,6 @@ class AdminController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @return View
|
||||
*/
|
||||
public function index(): View
|
||||
{
|
||||
@ -25,9 +23,6 @@ public function index(): View
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return RedirectResponse
|
||||
*/
|
||||
public function store(Request $request): RedirectResponse
|
||||
{
|
||||
@ -49,8 +44,6 @@ public function store(Request $request): RedirectResponse
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*
|
||||
* @return View
|
||||
*/
|
||||
public function create(): View
|
||||
{
|
||||
@ -59,9 +52,6 @@ public function create(): View
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*
|
||||
* @param Admin $admin
|
||||
* @return View
|
||||
*/
|
||||
public function edit(Admin $admin): View
|
||||
{
|
||||
@ -70,10 +60,6 @@ public function edit(Admin $admin): View
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*
|
||||
* @param Request $request
|
||||
* @param Admin $admin
|
||||
* @return RedirectResponse
|
||||
*/
|
||||
public function update(Request $request, Admin $admin): RedirectResponse
|
||||
{
|
||||
@ -105,9 +91,6 @@ public function update(Request $request, Admin $admin): RedirectResponse
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*
|
||||
* @param Admin $admin
|
||||
* @return RedirectResponse
|
||||
*/
|
||||
public function destroy(Admin $admin): RedirectResponse
|
||||
{
|
||||
|
@ -12,8 +12,6 @@ class ApplicationController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @return View
|
||||
*/
|
||||
public function index(): View
|
||||
{
|
||||
@ -24,9 +22,6 @@ public function index(): View
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return View
|
||||
*/
|
||||
public function store(Request $request): View
|
||||
{
|
||||
@ -43,8 +38,6 @@ public function store(Request $request): View
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*
|
||||
* @return View
|
||||
*/
|
||||
public function create(): View
|
||||
{
|
||||
@ -53,9 +46,6 @@ public function create(): View
|
||||
|
||||
/**
|
||||
* Display the specified resource.
|
||||
*
|
||||
* @param Application $application
|
||||
* @return RedirectResponse
|
||||
*/
|
||||
public function show(Application $application): RedirectResponse
|
||||
{
|
||||
@ -64,9 +54,6 @@ public function show(Application $application): RedirectResponse
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*
|
||||
* @param Application $application
|
||||
* @return View
|
||||
*/
|
||||
public function edit(Application $application): View
|
||||
{
|
||||
@ -75,10 +62,6 @@ public function edit(Application $application): View
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*
|
||||
* @param Request $request
|
||||
* @param Application $application
|
||||
* @return RedirectResponse
|
||||
*/
|
||||
public function update(Request $request, Application $application): RedirectResponse
|
||||
{
|
||||
@ -95,9 +78,6 @@ public function update(Request $request, Application $application): RedirectResp
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*
|
||||
* @param Application $application
|
||||
* @return RedirectResponse
|
||||
*/
|
||||
public function destroy(Application $application): RedirectResponse
|
||||
{
|
||||
|
@ -9,9 +9,6 @@
|
||||
|
||||
class AuthController extends Controller
|
||||
{
|
||||
/**
|
||||
* @return View|RedirectResponse
|
||||
*/
|
||||
public function index(): View|RedirectResponse
|
||||
{
|
||||
if (! auth('admin')->check()) {
|
||||
@ -21,10 +18,6 @@ public function index(): View|RedirectResponse
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Request $request
|
||||
* @return RedirectResponse
|
||||
*/
|
||||
public function login(Request $request): RedirectResponse
|
||||
{
|
||||
if (auth('admin')->attempt($request->only('email', 'password'), $request->has('remember'))) {
|
||||
@ -34,9 +27,6 @@ public function login(Request $request): RedirectResponse
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RedirectResponse
|
||||
*/
|
||||
public function logout(): RedirectResponse
|
||||
{
|
||||
auth('admin')->logout();
|
||||
|
@ -12,10 +12,6 @@ class HostController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
*
|
||||
* @param Request $request
|
||||
* @return View
|
||||
*/
|
||||
public function index(Request $request): View
|
||||
{
|
||||
@ -37,9 +33,6 @@ public function index(Request $request): View
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*
|
||||
* @param Host $host
|
||||
* @return View
|
||||
*/
|
||||
public function edit(Host $host): View
|
||||
{
|
||||
@ -48,10 +41,6 @@ public function edit(Host $host): View
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*
|
||||
* @param Request $request
|
||||
* @param Host $host
|
||||
* @return RedirectResponse
|
||||
*/
|
||||
public function update(Request $request, Host $host): RedirectResponse
|
||||
{
|
||||
@ -69,9 +58,6 @@ public function update(Request $request, Host $host): RedirectResponse
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*
|
||||
* @param Host $host
|
||||
* @return RedirectResponse
|
||||
*/
|
||||
public function destroy(Host $host): RedirectResponse
|
||||
{
|
||||
|
@ -13,8 +13,6 @@ class MaintenanceController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @return View
|
||||
*/
|
||||
public function index(): View
|
||||
{
|
||||
@ -25,9 +23,6 @@ public function index(): View
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return RedirectResponse
|
||||
*/
|
||||
public function store(Request $request): RedirectResponse
|
||||
{
|
||||
@ -46,8 +41,6 @@ public function store(Request $request): RedirectResponse
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*
|
||||
* @return View
|
||||
*/
|
||||
public function create(): View
|
||||
{
|
||||
@ -58,9 +51,6 @@ public function create(): View
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*
|
||||
* @param Maintenance $maintenance
|
||||
* @return View
|
||||
*/
|
||||
public function edit(Maintenance $maintenance): View
|
||||
{
|
||||
@ -71,10 +61,6 @@ public function edit(Maintenance $maintenance): View
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*
|
||||
* @param Request $request
|
||||
* @param Maintenance $maintenance
|
||||
* @return RedirectResponse
|
||||
*/
|
||||
public function update(Request $request, Maintenance $maintenance): RedirectResponse
|
||||
{
|
||||
@ -93,9 +79,6 @@ public function update(Request $request, Maintenance $maintenance): RedirectResp
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*
|
||||
* @param Maintenance $maintenance
|
||||
* @return RedirectResponse
|
||||
*/
|
||||
public function destroy(Maintenance $maintenance): RedirectResponse
|
||||
{
|
||||
|
@ -15,9 +15,6 @@ class ModuleController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @param Module $module
|
||||
* @return View
|
||||
*/
|
||||
public function index(Module $module): View
|
||||
{
|
||||
@ -28,8 +25,6 @@ public function index(Module $module): View
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*
|
||||
* @return View
|
||||
*/
|
||||
public function create(): View
|
||||
{
|
||||
@ -38,9 +33,6 @@ public function create(): View
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return RedirectResponse
|
||||
*/
|
||||
public function store(Request $request): RedirectResponse
|
||||
{
|
||||
@ -78,9 +70,6 @@ private function rules(): array
|
||||
|
||||
/**
|
||||
* Display the specified resource.
|
||||
*
|
||||
* @param Module $module
|
||||
* @return View
|
||||
*/
|
||||
public function show(Module $module): View
|
||||
{
|
||||
@ -93,9 +82,6 @@ public function show(Module $module): View
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*
|
||||
* @param Module $module
|
||||
* @return View
|
||||
*/
|
||||
public function edit(Module $module): View
|
||||
{
|
||||
@ -106,10 +92,6 @@ public function edit(Module $module): View
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*
|
||||
* @param Request $request
|
||||
* @param Module $module
|
||||
* @return RedirectResponse
|
||||
*/
|
||||
public function update(Request $request, Module $module): RedirectResponse
|
||||
{
|
||||
@ -160,9 +142,6 @@ public function update(Request $request, Module $module): RedirectResponse
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*
|
||||
* @param Module $module
|
||||
* @return RedirectResponse
|
||||
*/
|
||||
public function destroy(Module $module): RedirectResponse
|
||||
{
|
||||
|
@ -16,8 +16,6 @@ class NodeController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @return View
|
||||
*/
|
||||
public function index(): View
|
||||
{
|
||||
@ -28,10 +26,6 @@ public function index(): View
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*
|
||||
* @param Request $request
|
||||
* @param string $node
|
||||
* @return JsonResponse
|
||||
*/
|
||||
public function update(Request $request, string $node): JsonResponse
|
||||
{
|
||||
|
@ -16,9 +16,6 @@ class NotificationController extends Controller
|
||||
{
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return View
|
||||
*/
|
||||
public function create(Request $request): View
|
||||
{
|
||||
@ -66,9 +63,6 @@ public function query(Request|array $request): User|CachedBuilder|Builder
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return RedirectResponse
|
||||
*/
|
||||
public function store(Request $request): RedirectResponse
|
||||
{
|
||||
|
@ -13,10 +13,6 @@ class ReplyController extends Controller
|
||||
{
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*
|
||||
* @param Request $request
|
||||
* @param WorkOrder $work_order
|
||||
* @return RedirectResponse
|
||||
*/
|
||||
public function store(Request $request, WorkOrder $work_order): RedirectResponse
|
||||
{
|
||||
@ -39,10 +35,6 @@ public function store(Request $request, WorkOrder $work_order): RedirectResponse
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*
|
||||
* @param WorkOrder $work_order
|
||||
* @param Reply $reply
|
||||
* @return View
|
||||
*/
|
||||
public function edit(WorkOrder $work_order, Reply $reply): View
|
||||
{
|
||||
@ -51,11 +43,6 @@ public function edit(WorkOrder $work_order, Reply $reply): View
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*
|
||||
* @param Request $request
|
||||
* @param WorkOrder $work_order
|
||||
* @param Reply $reply
|
||||
* @return RedirectResponse
|
||||
*/
|
||||
public function update(Request $request, WorkOrder $work_order, Reply $reply): RedirectResponse
|
||||
{
|
||||
@ -72,10 +59,6 @@ public function update(Request $request, WorkOrder $work_order, Reply $reply): R
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*
|
||||
* @param WorkOrder $work_order
|
||||
* @param Reply $reply
|
||||
* @return RedirectResponse
|
||||
*/
|
||||
public function destroy(WorkOrder $work_order, Reply $reply): RedirectResponse
|
||||
{
|
||||
|
@ -56,9 +56,6 @@ public function index(Request $request): View
|
||||
|
||||
/**
|
||||
* Display the specified resource.
|
||||
*
|
||||
* @param User $user
|
||||
* @return RedirectResponse
|
||||
*/
|
||||
public function show(User $user): RedirectResponse
|
||||
{
|
||||
@ -69,9 +66,6 @@ public function show(User $user): RedirectResponse
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*
|
||||
* @param User $user
|
||||
* @return View
|
||||
*/
|
||||
public function edit(User $user): View
|
||||
{
|
||||
@ -85,10 +79,6 @@ public function edit(User $user): View
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*
|
||||
* @param Request $request
|
||||
* @param User $user
|
||||
* @return RedirectResponse
|
||||
*/
|
||||
public function update(Request $request, User $user): RedirectResponse
|
||||
{
|
||||
@ -153,9 +143,6 @@ public function update(Request $request, User $user): RedirectResponse
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*
|
||||
* @param User $user
|
||||
* @return RedirectResponse
|
||||
*/
|
||||
public function destroy(User $user): RedirectResponse
|
||||
{
|
||||
|
@ -13,8 +13,6 @@ class UserGroupController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @return View
|
||||
*/
|
||||
public function index(): View
|
||||
{
|
||||
@ -25,9 +23,6 @@ public function index(): View
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return RedirectResponse
|
||||
*/
|
||||
public function store(Request $request): RedirectResponse
|
||||
{
|
||||
@ -50,8 +45,6 @@ private function rules(): array
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*
|
||||
* @return View
|
||||
*/
|
||||
public function create(): View
|
||||
{
|
||||
@ -60,9 +53,6 @@ public function create(): View
|
||||
|
||||
/**
|
||||
* Display the specified resource.
|
||||
*
|
||||
* @param UserGroup $user_group
|
||||
* @return View
|
||||
*/
|
||||
public function show(UserGroup $user_group): View
|
||||
{
|
||||
@ -73,9 +63,6 @@ public function show(UserGroup $user_group): View
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*
|
||||
* @param UserGroup $user_group
|
||||
* @return View
|
||||
*/
|
||||
public function edit(UserGroup $user_group): View
|
||||
{
|
||||
@ -84,10 +71,6 @@ public function edit(UserGroup $user_group): View
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*
|
||||
* @param Request $request
|
||||
* @param UserGroup $user_group
|
||||
* @return RedirectResponse
|
||||
*/
|
||||
public function update(Request $request, UserGroup $user_group): RedirectResponse
|
||||
{
|
||||
@ -100,9 +83,6 @@ public function update(Request $request, UserGroup $user_group): RedirectRespons
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*
|
||||
* @param UserGroup $user_group
|
||||
* @return RedirectResponse
|
||||
*/
|
||||
public function destroy(UserGroup $user_group): RedirectResponse
|
||||
{
|
||||
|
@ -14,10 +14,6 @@ class WorkOrderController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @param Request $request
|
||||
* @param WorkOrder $workOrder
|
||||
* @return View
|
||||
*/
|
||||
public function index(Request $request, WorkOrder $workOrder): View
|
||||
{
|
||||
@ -34,9 +30,6 @@ public function index(Request $request, WorkOrder $workOrder): View
|
||||
|
||||
/**
|
||||
* Display the specified resource.
|
||||
*
|
||||
* @param WorkOrder $workOrder
|
||||
* @return View
|
||||
*/
|
||||
public function show(WorkOrder $workOrder): View
|
||||
{
|
||||
@ -49,9 +42,6 @@ public function show(WorkOrder $workOrder): View
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*
|
||||
* @param WorkOrder $workOrder
|
||||
* @return View
|
||||
*/
|
||||
public function edit(WorkOrder $workOrder): View
|
||||
{
|
||||
@ -60,10 +50,6 @@ public function edit(WorkOrder $workOrder): View
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*
|
||||
* @param Request $request
|
||||
* @param WorkOrder $workOrder
|
||||
* @return RedirectResponse
|
||||
*/
|
||||
public function update(Request $request, WorkOrder $workOrder): RedirectResponse
|
||||
{
|
||||
@ -82,9 +68,6 @@ public function update(Request $request, WorkOrder $workOrder): RedirectResponse
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*
|
||||
* @param WorkOrder $workOrder
|
||||
* @return RedirectResponse
|
||||
*/
|
||||
public function destroy(WorkOrder $workOrder): RedirectResponse
|
||||
{
|
||||
|
@ -11,8 +11,6 @@ class BalanceController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @return JsonResponse
|
||||
*/
|
||||
public function index(): JsonResponse
|
||||
{
|
||||
@ -23,9 +21,6 @@ public function index(): JsonResponse
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return JsonResponse
|
||||
*/
|
||||
public function store(Request $request): JsonResponse
|
||||
{
|
||||
@ -48,9 +43,6 @@ public function store(Request $request): JsonResponse
|
||||
|
||||
/**
|
||||
* Display the specified resource.
|
||||
*
|
||||
* @param Balance $balance
|
||||
* @return JsonResponse
|
||||
*/
|
||||
public function show(Balance $balance): JsonResponse
|
||||
{
|
||||
|
@ -13,9 +13,6 @@ class ReplyController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @param WorkOrder $workOrder
|
||||
* @return JsonResponse
|
||||
*/
|
||||
public function index(WorkOrder $workOrder): JsonResponse
|
||||
{
|
||||
@ -26,10 +23,6 @@ public function index(WorkOrder $workOrder): JsonResponse
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*
|
||||
* @param Request $request
|
||||
* @param WorkOrder $workOrder
|
||||
* @return JsonResponse
|
||||
*/
|
||||
public function store(Request $request, WorkOrder $workOrder): JsonResponse
|
||||
{
|
||||
|
@ -28,8 +28,6 @@ public function index(Request $request): Paginator
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return Response|JsonResponse
|
||||
*
|
||||
* @throws ValidationException
|
||||
*/
|
||||
@ -71,9 +69,6 @@ public function store(Request $request): Response|JsonResponse
|
||||
|
||||
/**
|
||||
* Display the specified resource.
|
||||
*
|
||||
* @param Host $host
|
||||
* @return JsonResponse
|
||||
*/
|
||||
public function show(Host $host): JsonResponse
|
||||
{
|
||||
@ -86,9 +81,6 @@ public function show(Host $host): JsonResponse
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*
|
||||
* @param Request $request
|
||||
* @param Host $host
|
||||
* @return JsonResponse
|
||||
*
|
||||
* @throws ValidationException
|
||||
*/
|
||||
@ -108,9 +100,6 @@ public function update(Request $request, Host $host): JsonResponse
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*
|
||||
* @param $host
|
||||
* @return JsonResponse
|
||||
*/
|
||||
public function destroy($host): JsonResponse
|
||||
{
|
||||
|
@ -12,9 +12,6 @@ class ReplyController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return JsonResponse
|
||||
*/
|
||||
public function index(Request $request): JsonResponse
|
||||
{
|
||||
|
@ -16,9 +16,6 @@ class TaskController extends Controller
|
||||
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return JsonResponse
|
||||
*/
|
||||
public function index(Request $request): JsonResponse
|
||||
{
|
||||
@ -30,8 +27,6 @@ public function index(Request $request): JsonResponse
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return JsonResponse
|
||||
*
|
||||
* @throws ValidationException
|
||||
*/
|
||||
@ -51,9 +46,6 @@ public function store(Request $request): JsonResponse
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*
|
||||
* @param Request $request
|
||||
* @param Task $task
|
||||
* @return JsonResponse
|
||||
*
|
||||
* @throws ValidationException
|
||||
*/
|
||||
|
@ -23,8 +23,6 @@ class ConfirmPasswordController extends Controller
|
||||
|
||||
/**
|
||||
* Where to redirect users when the intended url fails.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected string $redirectTo = RouteServiceProvider::HOME;
|
||||
|
||||
|
@ -23,8 +23,6 @@ class LoginController extends Controller
|
||||
|
||||
/**
|
||||
* Where to redirect users after login.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected string $redirectTo = RouteServiceProvider::HOME;
|
||||
|
||||
|
@ -26,8 +26,6 @@ class RegisterController extends Controller
|
||||
|
||||
/**
|
||||
* Where to redirect users after registration.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected string $redirectTo = RouteServiceProvider::HOME;
|
||||
|
||||
@ -43,9 +41,6 @@ public function __construct()
|
||||
|
||||
/**
|
||||
* Get a validator for an incoming registration request.
|
||||
*
|
||||
* @param array $data
|
||||
* @return \Illuminate\Contracts\Validation\Validator
|
||||
*/
|
||||
protected function validator(array $data): \Illuminate\Contracts\Validation\Validator
|
||||
{
|
||||
@ -58,9 +53,6 @@ protected function validator(array $data): \Illuminate\Contracts\Validation\Vali
|
||||
|
||||
/**
|
||||
* Create a new user instance after a valid registration.
|
||||
*
|
||||
* @param array $data
|
||||
* @return User
|
||||
*/
|
||||
protected function create(array $data): User
|
||||
{
|
||||
|
@ -23,8 +23,6 @@ class ResetPasswordController extends Controller
|
||||
|
||||
/**
|
||||
* Where to redirect users after resetting their password.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected string $redirectTo = RouteServiceProvider::HOME;
|
||||
}
|
||||
|
@ -23,8 +23,6 @@ class VerificationController extends Controller
|
||||
|
||||
/**
|
||||
* Where to redirect users after verification.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected string $redirectTo = RouteServiceProvider::HOME;
|
||||
|
||||
|
@ -241,7 +241,6 @@ public function notify(
|
||||
* 获取交易记录
|
||||
*
|
||||
* @param mixed $request
|
||||
* @return View
|
||||
*/
|
||||
public function transactions(
|
||||
Request $request
|
||||
|
@ -12,8 +12,6 @@ class HostController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @return View
|
||||
*/
|
||||
public function index(): View
|
||||
{
|
||||
@ -35,9 +33,6 @@ public function update(Request $request, Host $host): RedirectResponse
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*
|
||||
* @param Host $host
|
||||
* @return RedirectResponse
|
||||
*/
|
||||
public function destroy(Host $host): RedirectResponse
|
||||
{
|
||||
|
@ -10,10 +10,6 @@ class AddHeaders
|
||||
{
|
||||
/**
|
||||
* Handle an incoming request.
|
||||
*
|
||||
* @param Request $request
|
||||
* @param Closure $next
|
||||
* @return mixed
|
||||
*/
|
||||
public function handle(Request $request, Closure $next): mixed
|
||||
{
|
||||
|
@ -13,9 +13,7 @@ class ValidateReferer
|
||||
/**
|
||||
* Handle an incoming request.
|
||||
*
|
||||
* @param Request $request
|
||||
* @param Closure(Request): (Response|RedirectResponse) $next
|
||||
* @return mixed
|
||||
*/
|
||||
public function handle(Request $request, Closure $next): mixed
|
||||
{
|
||||
|
@ -11,7 +11,6 @@ class Authenticate extends Middleware
|
||||
* Get the path the user should be redirected to when they are not authenticated.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return string|null
|
||||
*/
|
||||
protected function redirectTo($request): ?string
|
||||
{
|
||||
|
@ -13,9 +13,7 @@ class JsonRequest
|
||||
/**
|
||||
* Handle an incoming request.
|
||||
*
|
||||
* @param Request $request
|
||||
* @param Closure(Request): (Response|RedirectResponse) $next
|
||||
* @return Response|RedirectResponse|JsonResponse
|
||||
*/
|
||||
public function handle(Request $request, Closure $next): Response|JsonResponse|RedirectResponse
|
||||
{
|
||||
|
@ -12,10 +12,6 @@ class MakeSureModuleStatusIsUp
|
||||
{
|
||||
/**
|
||||
* Handle an incoming request.
|
||||
*
|
||||
* @param Request $request
|
||||
* @param Closure $next
|
||||
* @return Response|RedirectResponse|JsonResponse
|
||||
*/
|
||||
public function handle(Request $request, Closure $next): Response|RedirectResponse|JsonResponse
|
||||
{
|
||||
|
@ -15,11 +15,6 @@ class RealNamed
|
||||
|
||||
/**
|
||||
* Handle an incoming request.
|
||||
*
|
||||
* @param Request $request
|
||||
* @param Closure $next
|
||||
* @param string $guard
|
||||
* @return Response|RedirectResponse|JsonResponse
|
||||
*/
|
||||
public function handle(Request $request, Closure $next, string $guard = 'web'): Response|RedirectResponse|JsonResponse
|
||||
{
|
||||
|
@ -14,10 +14,8 @@ class RedirectIfAuthenticated
|
||||
/**
|
||||
* Handle an incoming request.
|
||||
*
|
||||
* @param Request $request
|
||||
* @param Closure(Request): (Response|RedirectResponse) $next
|
||||
* @param string|null ...$guards
|
||||
* @return Response|RedirectResponse
|
||||
*/
|
||||
public function handle(Request $request, Closure $next, ...$guards): Response|RedirectResponse
|
||||
{
|
||||
|
@ -14,9 +14,7 @@ class ReportRequestToCluster
|
||||
/**
|
||||
* Handle an incoming request.
|
||||
*
|
||||
* @param Request $request
|
||||
* @param Closure(Request): (Response|RedirectResponse) $next
|
||||
* @return mixed
|
||||
*/
|
||||
public function handle(Request $request, Closure $next): mixed
|
||||
{
|
||||
|
@ -12,9 +12,7 @@ class TrustedDomain
|
||||
/**
|
||||
* Handle an incoming request.
|
||||
*
|
||||
* @param Request $request
|
||||
* @param Closure(Request): (Response|RedirectResponse) $next
|
||||
* @return mixed
|
||||
*/
|
||||
public function handle(Request $request, Closure $next): mixed
|
||||
{
|
||||
|
@ -12,10 +12,6 @@ class ValidateUserIfBanned
|
||||
{
|
||||
/**
|
||||
* Handle an incoming request.
|
||||
*
|
||||
* @param Request $request
|
||||
* @param Closure $next
|
||||
* @return Response|RedirectResponse|JsonResponse
|
||||
*/
|
||||
public function handle(Request $request, Closure $next): Response|RedirectResponse|JsonResponse
|
||||
{
|
||||
|
@ -8,8 +8,6 @@ class StatusRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
|
@ -9,8 +9,6 @@ class WorkOrderRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
|
@ -9,8 +9,6 @@ class HostRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
|
@ -8,8 +8,6 @@ class WorkOrderRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
|
@ -16,8 +16,6 @@ class DeleteHostJob implements ShouldQueue
|
||||
|
||||
/**
|
||||
* Execute the job.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function handle(): void
|
||||
{
|
||||
|
@ -31,8 +31,6 @@ public function __construct($minute, Host $host = null)
|
||||
|
||||
/**
|
||||
* Execute the job.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function handle(): void
|
||||
{
|
||||
|
@ -36,7 +36,6 @@ public function __construct(HostModel $host, $type = 'post', $pass_unavailable =
|
||||
/**
|
||||
* Execute the job.
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @noinspection PhpUndefinedVariableInspection
|
||||
*/
|
||||
|
@ -16,8 +16,6 @@ class PushHostJob implements ShouldQueue
|
||||
|
||||
/**
|
||||
* Execute the job.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function handle(): void
|
||||
{
|
||||
|
@ -17,8 +17,6 @@ class ScanAllHostsJob implements ShouldQueue
|
||||
|
||||
/**
|
||||
* Execute the job.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function handle(): void
|
||||
{
|
||||
|
@ -28,8 +28,6 @@ public function __construct(?Host $host)
|
||||
|
||||
/**
|
||||
* Execute the job.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function handle(): void
|
||||
{
|
||||
|
@ -29,8 +29,6 @@ public function __construct(Host $host)
|
||||
|
||||
/**
|
||||
* Execute the job.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function handle(): void
|
||||
{
|
||||
|
@ -29,8 +29,6 @@ public function __construct(Module $module = null)
|
||||
|
||||
/**
|
||||
* Execute the job.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function handle(): void
|
||||
{
|
||||
|
@ -11,8 +11,6 @@ class SendModuleEarningsJob extends Job
|
||||
{
|
||||
/**
|
||||
* Execute the job.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function handle(): void
|
||||
{
|
||||
|
@ -35,8 +35,6 @@ public function __construct($client_id, $username, $like_username = false)
|
||||
|
||||
/**
|
||||
* Execute the job.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function handle(): void
|
||||
{
|
||||
|
@ -14,8 +14,6 @@ class CheckAndChargeBalanceJob extends Job implements ShouldQueue
|
||||
{
|
||||
/**
|
||||
* Execute the job.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function handle(): void
|
||||
{
|
||||
|
@ -16,8 +16,6 @@ class ClearTasksJob implements ShouldQueue
|
||||
|
||||
/**
|
||||
* Execute the job.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function handle(): void
|
||||
{
|
||||
|
@ -16,8 +16,6 @@ class RollbackUserTempGroupJob implements ShouldQueue
|
||||
|
||||
/**
|
||||
* Execute the job.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function handle(): void
|
||||
{
|
||||
|
@ -41,8 +41,6 @@ public function __construct(array $requests, $title, $content, $send_mail = fals
|
||||
|
||||
/**
|
||||
* Execute the job.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function handle(): void
|
||||
{
|
||||
|
@ -17,8 +17,6 @@ class SetBirthdayGroupJob implements ShouldQueue
|
||||
|
||||
/**
|
||||
* Execute the job.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function handle(): void
|
||||
{
|
||||
|
@ -9,8 +9,6 @@ class AutoCloseWorkOrderJob extends Job
|
||||
{
|
||||
/**
|
||||
* Execute the job.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function handle(): void
|
||||
{
|
||||
|
@ -16,8 +16,6 @@ class PushWorkOrderJob implements ShouldQueue
|
||||
|
||||
/**
|
||||
* Execute the job.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function handle(): void
|
||||
{
|
||||
|
@ -29,8 +29,6 @@ public function __construct(WorkOrderReply $reply, $type = 'post')
|
||||
|
||||
/**
|
||||
* Execute the job.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function handle(): void
|
||||
{
|
||||
|
@ -32,8 +32,6 @@ public function __construct(WorkOrderModel $workOrder, $type = 'post')
|
||||
|
||||
/**
|
||||
* Execute the job.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function handle(): void
|
||||
{
|
||||
|
@ -107,13 +107,6 @@ private function getResponse(Response $response): array
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $method
|
||||
* @param $path
|
||||
* @param $requests
|
||||
* @param array $files
|
||||
* @return array
|
||||
*/
|
||||
public function request($method, $path, $requests, array $files = []): array
|
||||
{
|
||||
try {
|
||||
@ -202,12 +195,6 @@ public function calculate(): array
|
||||
|
||||
/**
|
||||
* 扣除费用
|
||||
*
|
||||
* @param string|null $amount
|
||||
* @param string|null $description
|
||||
* @param bool $fail
|
||||
* @param array $options
|
||||
* @return string
|
||||
*/
|
||||
public function reduce(string|null $amount = '0', string|null $description = '消费', bool $fail = false, array $options = []): string
|
||||
{
|
||||
@ -249,12 +236,6 @@ public function reduce(string|null $amount = '0', string|null $description = '
|
||||
|
||||
/**
|
||||
* 增加余额
|
||||
*
|
||||
* @param string|null $amount
|
||||
* @param string $payment
|
||||
* @param string|null $description
|
||||
* @param array $options
|
||||
* @return string
|
||||
*/
|
||||
public function charge(string|null $amount = '0', string $payment = 'console', string|null $description = '充值', array $options = []): string
|
||||
{
|
||||
|
@ -15,9 +15,6 @@ class PersonalAccessToken extends SanctumPersonalAccessToken
|
||||
* We only want to actually save when there is something other than
|
||||
* the last_used_at column that has changed. It prevents extra DB writes
|
||||
* since we aren't going to use that column for anything.
|
||||
*
|
||||
* @param array $options
|
||||
* @return bool
|
||||
*/
|
||||
public function save(array $options = []): bool
|
||||
{
|
||||
|
@ -165,12 +165,6 @@ public function startTransfer(self $to, string $amount, string|null $description
|
||||
|
||||
/**
|
||||
* 扣除费用
|
||||
*
|
||||
* @param string|null $amount
|
||||
* @param string $description
|
||||
* @param bool $fail
|
||||
* @param array $options
|
||||
* @return Transaction
|
||||
*/
|
||||
public function reduce(string|null $amount = '0', string $description = '消费', bool $fail = false, array $options = []): Transaction
|
||||
{
|
||||
@ -210,12 +204,6 @@ public function reduce(string|null $amount = '0', string $description = '消费'
|
||||
|
||||
/**
|
||||
* 增加余额
|
||||
*
|
||||
* @param string|null $amount
|
||||
* @param string $payment
|
||||
* @param string $description
|
||||
* @param array $options
|
||||
* @return Transaction
|
||||
*/
|
||||
public function charge(string|null $amount = '0', string $payment = 'console', string $description = '充值', array $options = []): Transaction
|
||||
{
|
||||
@ -267,8 +255,6 @@ public function getCostPrice(string $price): string
|
||||
|
||||
/**
|
||||
* 获取用户的身份证号
|
||||
*
|
||||
* @return Attribute
|
||||
*/
|
||||
protected function idCard(): Attribute
|
||||
{
|
||||
|
@ -31,11 +31,6 @@ public function users(): HasMany
|
||||
|
||||
/**
|
||||
* 设置临时用户组
|
||||
*
|
||||
* @param User $user
|
||||
* @param UserGroup $group
|
||||
* @param Carbon $expired_at
|
||||
* @return User
|
||||
*/
|
||||
public function setTempGroup(User $user, self $group, Carbon $expired_at): User
|
||||
{
|
||||
|
@ -13,10 +13,6 @@ class WeComChannel extends Notification
|
||||
|
||||
/**
|
||||
* Send the given notification.
|
||||
*
|
||||
* @param mixed $notifiable
|
||||
* @param Notification $notification
|
||||
* @return void
|
||||
*/
|
||||
public function send(mixed $notifiable, Notification $notification): void
|
||||
{
|
||||
|
@ -13,10 +13,6 @@ class WebChannel extends Notification
|
||||
|
||||
/**
|
||||
* Send the given notification.
|
||||
*
|
||||
* @param mixed $notifiable
|
||||
* @param Notification $notification
|
||||
* @return void
|
||||
*/
|
||||
public function send(mixed $notifiable, Notification $notification): void
|
||||
{
|
||||
|
@ -24,9 +24,6 @@ public function __construct()
|
||||
|
||||
/**
|
||||
* Get the notification's delivery channels.
|
||||
*
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function via(): array
|
||||
{
|
||||
@ -35,9 +32,6 @@ public function via(): array
|
||||
|
||||
/**
|
||||
* Get the mail representation of the notification.
|
||||
*
|
||||
*
|
||||
* @return MailMessage
|
||||
*/
|
||||
public function toMail(): MailMessage
|
||||
{
|
||||
@ -91,9 +85,6 @@ public function toMail(): MailMessage
|
||||
|
||||
/**
|
||||
* Get the array representation of the notification.
|
||||
*
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function toArray(): array
|
||||
{
|
||||
|
@ -24,9 +24,6 @@ public function __construct()
|
||||
|
||||
/**
|
||||
* Get the notification's delivery channels.
|
||||
*
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function via(): array
|
||||
{
|
||||
|
@ -32,8 +32,6 @@ public function __construct(string $title, string $content, bool $send_mail = fa
|
||||
|
||||
/**
|
||||
* Get the notification's delivery channels.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function via(): array
|
||||
{
|
||||
@ -48,8 +46,6 @@ public function via(): array
|
||||
|
||||
/**
|
||||
* Get the mail representation of the notification.
|
||||
*
|
||||
* @return MailMessage
|
||||
*/
|
||||
public function toMail(): MailMessage
|
||||
{
|
||||
@ -61,8 +57,6 @@ public function toMail(): MailMessage
|
||||
|
||||
/**
|
||||
* Get the array representation of the notification.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function toArray(): array
|
||||
{
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user