PATH:
home
/
rwabteecom
/
project_11
/
app
/
Services
/
Authentication
/
Editing: RegistrationServices.php
<?php namespace App\Services\Authentication; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\RateLimiter; class RegistrationServices extends BaseAuthenticationService { protected $request; protected $auth; public function __construct($request, $auth) { $this->request = $request; $this->auth = $auth; } public function register($callback) { return DB::transaction(function () use ($callback) { $this->ensureIsNotRateLimited(); $auth = $callback(); RateLimiter::clear($this->throttleKey()); return $auth; }); } }
SAVE
CANCEL