summaryrefslogtreecommitdiff
path: root/app/Http/Controllers/Auth/RegisterController.php
diff options
context:
space:
mode:
authorHorus2021-01-14 12:09:03 +0100
committerHorus2021-01-14 12:09:03 +0100
commit5269a15bcffe0a5084092fc61f445c0bee588baa (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904 /app/Http/Controllers/Auth/RegisterController.php
parent0e92c9d4bcf6c3fb422493cd6b44eeced1219c06 (diff)
downloadzeitumstellung-5269a15bcffe0a5084092fc61f445c0bee588baa.tar.gz
Delete Laravel app.
Diffstat (limited to 'app/Http/Controllers/Auth/RegisterController.php')
-rw-r--r--app/Http/Controllers/Auth/RegisterController.php73
1 files changed, 0 insertions, 73 deletions
diff --git a/app/Http/Controllers/Auth/RegisterController.php b/app/Http/Controllers/Auth/RegisterController.php
deleted file mode 100644
index c6a6de6..0000000
--- a/app/Http/Controllers/Auth/RegisterController.php
+++ /dev/null
@@ -1,73 +0,0 @@
-<?php
-
-namespace App\Http\Controllers\Auth;
-
-use App\Http\Controllers\Controller;
-use App\Providers\RouteServiceProvider;
-use App\User;
-use Illuminate\Foundation\Auth\RegistersUsers;
-use Illuminate\Support\Facades\Hash;
-use Illuminate\Support\Facades\Validator;
-
-class RegisterController extends Controller
-{
- /*
- |--------------------------------------------------------------------------
- | Register Controller
- |--------------------------------------------------------------------------
- |
- | This controller handles the registration of new users as well as their
- | validation and creation. By default this controller uses a trait to
- | provide this functionality without requiring any additional code.
- |
- */
-
- use RegistersUsers;
-
- /**
- * Where to redirect users after registration.
- *
- * @var string
- */
- protected $redirectTo = RouteServiceProvider::HOME;
-
- /**
- * Create a new controller instance.
- *
- * @return void
- */
- public function __construct()
- {
- $this->middleware('guest');
- }
-
- /**
- * Get a validator for an incoming registration request.
- *
- * @param array $data
- * @return \Illuminate\Contracts\Validation\Validator
- */
- protected function validator(array $data)
- {
- return Validator::make($data, [
- 'name' => ['required', 'string', 'max:255'],
- 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],
- 'password' => ['required', 'string', 'min:8', 'confirmed'],
- ]);
- }
-
- /**
- * Create a new user instance after a valid registration.
- *
- * @param array $data
- * @return \App\User
- */
- protected function create(array $data)
- {
- return User::create([
- 'name' => $data['name'],
- 'email' => $data['email'],
- 'password' => Hash::make($data['password']),
- ]);
- }
-}