# Order Allow, Deny
deny from all
allow from #Мой IP адрес
# Order Allow, Deny
deny from all
allow from 127.0.0.1
$password = Str::random();
Auth::login($user = User::create([
'name' => $request->name,
'email' => $request->email,
'password' => Hash::make($password),
]));
event(new Registered($user));
$user->notify(new UserData($user, $password));
$request->validate([
'name' => 'required|string|max:255',
'email' => 'required|string|email|max:255|unique:users',
]);
$password = Str::random();
Auth::login($user = User::create([
'name' => $request->name,
'email' => $request->email,
'password' => Hash::make($password),
]));
event(new Registered($user, $password));
return [
'status' => true,
'url' => RouteServiceProvider::HOME
];
/**
* Register any authentication / authorization services.
*
* @return void
*/
public function boot()
{
$this->registerPolicies();
VerifyEmail::toMailUsing(function ($user, $url) {
return (new MailMessage)
->subject('Вы успешно зарегестрировались! Осталось подтвердить email')
->markdown('emails.account.verify-email', ['user' => $user, 'url' => $url]);
});
}