Linux ~ Install Laravel 10.x

Instalasi laravel 10

composer create-project laravel/laravel epemilu

Instalasi breeze/auth

composer require laravel/breeze --dev
php artisan breeze:install
php artisan migrate
npm install
npm run dev

Setup mail di .env

MAIL_MAILER=smtp
MAIL_HOST=mail.ic4l.net
MAIL_PORT=465
MAIL_USERNAME=verification@ic4l.net
MAIL_PASSWORD=password
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS="verification@ic4l.net"
MAIL_FROM_NAME="${APP_NAME}"

Edit file app/Models/user.php

uncomment use Illuminate\Contracts\Auth\MustVerifyEmail;
dan tambahkan di akhir
class User extends Authenticatable implements MustVerifyEmail

verifikasi dengan imail beres!

Leave a Reply

Your email address will not be published. Required fields are marked *