Cześć!
Korzystam z Laravel do tworzenia kont oraz ich weryfikacji: https://laravel.com/docs/5.7/verification
Ktoś wie może gdzie znajduje się szablon emaila, który jest wysyłany po rejestracji, bo w folderze resources/views nie ma tego szablonu, w folderze app/ nie ma nawet klasy mailable.
Chodzi mi o domyślny szablon emaila, który jest wysyłany po rejestracji:
Cały kod mam domyślny i wszystko wygenerowane przy pomocy komend artisan.
app/User.php
<?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable implements MustVerifyEmail
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'email', 'password',
];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
'password', 'remember_token',
];
}
/routes/web.php
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::get('/', 'PagesController@index');
Auth::routes(['verify' => true]);
Route::get('/home', 'HomeController@index');
app\Http\Controllers\HomeController.php
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class HomeController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('auth');
$this->middleware('verified');
}
/**
* Show the application dashboard.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
return view('home');
}
}