Rename ConfirmRegistration mail to VerifyRegistration
MODIFY
app/Http/Controllers/RegisterController.php
app/Http/Controllers/RegisterController.php
@@ -5,7 +5,7 @@ namespace App\Http\Controllers;
use Illuminate\Http\Request;
// use App\Http\Controllers\Controller;
-use App\Mail\ConfirmRegistration;
+use App\Mail\VerifyRegistration;
use App\Currency;
use App\User;
use App\Space;
@@ -47,7 +47,7 @@ class RegisterController extends Controller {
$user->spaces()->attach($space->id, ['role' => 'admin']);
- Mail::to($user->email)->queue(new ConfirmRegistration($user));
+ Mail::to($user->email)->queue(new VerifyRegistration($user));
return redirect()
->route('login')

RENAME
app/Mail/ConfirmRegistration.php
app/Mail/VerifyRegistration.php
@@ -9,7 +9,7 @@ use Illuminate\Contracts\Queue\ShouldQueue;
use App\User;
-class ConfirmRegistration extends Mailable {
+class VerifyRegistration extends Mailable {
use Queueable, SerializesModels;
protected $user;
@@ -19,7 +19,7 @@ class ConfirmRegistration extends Mailable {
}
public function build() {
- return $this->view('emails.confirm_registration')
+ return $this->view('emails.verify_registration')
->with([
'name' => $this->user->name
]);

RENAME
resources/views/emails/confirm_registration.blade.php
resources/views/emails/verify_registration.blade.php
Rename ConfirmRegistration mail to VerifyRegistration