The Great Laravel Password Adventure
๐ Introduction (A.K.A. Letโs Get This Party Started!)
๐ง Configuration (Gear Up for the Tech Talk)
- Fine-tune your settings like a master chef adjusting his spices, but for code instead of food.
๐ Driver Prerequisites (Get Your Engines Ready)
- Ensure all necessary drivers are in tip-top shape before we embark on this password-resetting escapade.
๐ ๏ธ Model Preparation (Building Blocks, if you will)
- Sculpt your models into the perfect shape for handling those password-related tasks with finesse and style.
๐ Configuring Trusted Hosts (Only the trusted get to play in our sandbox)
- Set up a list of hosts that we trust not to impersonate your users.
Navigation (The Path to Password Freedom)
๐ฎ Requesting the Password Reset Link (Sending the SOS)
- Dispatch a message to the user, asking them if theyโve forgotten their password and need help.
๐จ Resetting the Password (Fixing what was broken)
- Assist your users in crafting a new password, strengthening their account security with every keystroke.
Spring Cleaning (Tidying Up)
- Regularly sweep away expired tokens to keep your application running smoothly and securely.
Customization Central (Add Your Personal Touch)
- Tailor the password-resetting experience to match your applicationโs unique personality, making it stand out from the crowd!
Welcome to the password-forgetting fun factory! ๐ค๐
In the wild west of web apps, youโll often find yourself playing the knight in shining armor, rescuing forgetful users from their own password prisons. But who wants to manually code that every time? Not us, and not you with Laravel around! ๐๐ฅณ
This magical unicorn of a framework offers you a smorgasbord of services for sending password reset links and securely setting new ones. No more coding by hand like itโs 1899! ๐งต๐ฐ๏ธ
[โ ๏ธATTN: Time-saver alert!] If speed is your game, why not install a Laravel application starter kit? Itโll scaffold your entire authentication system, password-forgetting and all, like a boss! ๐๐ ๏ธ
Jump on the fast track to password-reset glory with Laravel configuration! ๐๐โโ๏ธ๐ผ
Alrighty then! Itโs time we chat about the swankiest setting for your Laravel password reset spectacle: config/auth.php. Donโt forget to give it a gander, โcause itโs jam-packed with options thatโll make your appโs password shenanigans as smooth as silk.
By default, Laravel sets sail with the โdatabaseโ password reset shipper, but you can always swap captains if you fancy a change. The driver configuration option steers the course of where password reset data will be stashed away. Laravel offers two seaworthy vessels:
๐ข Database: This bad boy anchors your password reset data in a good olโ fashioned relational database.
๐ฃ Cache: If youโre looking for a speedier solution, this cache-based vessel will stow away your password reset data in one of your cache stores. Just remember, with great speed comes great responsibility (and potential data loss if you clear your cache).
So there you have it! Now that you know the drill, go forth and configure your appโs password reset adventures to your heartโs content! ๐๐๐
Alright, buckle up, database drivers are about to take a wild ride! ๐
MySQL Driver
Ah, the granddaddy of all relational databases. You know, the one who invented the concept of โrelationshipโ in SQL, because it was tired of being single. Itโs got the power, the charm, and a little bit of a temper (ask anyone whoโs ever had to optimize a query). This driver is perfect for those who love a good challenge and can handle a bossy database that insists on being the center of attention.
PostgreSQL Driver
Now this is a date you wonโt forget. PostgreSQL is the sophisticated, academically inclined one in the crowd, with a PhD in data integrity and a knack for complicated queries. Itโs like the professor of databases who refuses to teach anything but advanced topics because itโs just too easy. But fear not, once you learn its ways, youโll be able to conquer any database challenge that comes your way.
SQLite Driver
This is the no-nonsense, take-charge kind of driver. It doesnโt need a server to run and it stores all data in one tidy little file. Talk about low maintenance! Itโs perfect for small projects where you donโt want to deal with setting up a database server, or for those who believe that simplicity is the ultimate sophistication.
pSQL Driver (for Windows)
Oh, the charming one from across the pond! This driver is just like PostgreSQL but with a delightful British accent. Itโs the same sophisticated, academically inclined date, but with a bit of a posh twist. It may take some getting used to, especially if youโre not familiar with their unique brand of SQL and database management, but once you do, itโs all smooth sailing from there.
SQL Server Driver (for Windows)
This driver is the corporate powerhouse of the bunch. Itโs fast, reliable, and can handle massive amounts of data with ease. Itโs like the successful CEO who runs a multibillion-dollar corporation and still finds time to manage a database or two on the side. Itโs perfect for large projects that require a powerful and efficient database engine.
Oracle Driver
The grand old dame of the database world! Oracle is like the wise, experienced mentor who has seen it all and can solve any database problem you throw at her. Sheโs got the pedigree, the clout, and the price tag to match. But hey, if you can afford her, sheโll make your database dreams come true.
Thatโs your database drivers in a nutshell! Choose wisely, because once you pick a driver, itโs like committing to a lifetime partnership. And as we all know, in the world of databases, thatโs no small commitment. ๐
Alright, buckle up, coding cowboys and coding cowgirls! Letโs dive into the wild west of databases - where your Laravel appsโ password reset tokens roam free!
In this old-timey frontier town called database, every good saloon needs a place to store its whiskey lockbox keys, and thatโs just what our applicationโs password reset tokens are. Now, these arenโt your run-of-the-mill cowpoke keys; they require a proper saloon (a table) for storage.
Usually, youโll find the perfect table at Laravelโs sheriffโs office, where a wanted poster named 0001_01_01_000000_create_users_table.php hangs. This is one of those classic Laravel database migrations - you know, the ones that make your database feel like the Wild West all over again!
So, saddle up and letโs make our saloon a safe place for password reset tokens, cowboy-style!
Alrighty then! Letโs talk about Laravelโs Cache feature, the unsung hero of your applicationโs memory game! Imagine it as your appโs personal librarian, meticulously filing away password resets so you donโt have to keep re-reading them aloud.
But, just like that one library friend who borrows every book in sight, make sure this librarian isnโt using the same bookmarks (email addresses) as others in your application or youโll find yourself in a pickle, wishing for password resets instead of being able to read โWar and Peaceโ without interruption.
Hereโs a peek at how our librarian sets up shop:
'passwords' => [ // This is the password reset section, not an invitation to change your password!
'users' => [
'driver' => 'cache', // Because let's face it, who needs a dedicated bookshelf for one book?
'provider' => 'users', // You know, like that friend who knows all the cool books.
'store' => 'passwords', // This is our secret password-reset shelf. (Optional, but highly recommended!)
'expire' => 60, // After 60 minutes, your user can't keep their password on extended loan.
'throttle' => 60, // Gives your librarian a breather before they rush off to find more books!
],
],
And to make sure this librarian doesnโt clear all the books (password resets) when you call for a library-wide clean-up (artisan cache:clear), you can optionally assign them their own personal shelf with the store configuration key. Just remember, the value should correspond to a shelf youโve set up in your config/cache.php configuration file. Now you and your password reset librarian can coexist peacefully!
And thatโs all folks! Go forth and cache, knowing your Laravel application will run faster than Usain Bolt with a tailwind. Or something like thatโฆ ๐โโ๏ธ๐
Alrighty, buckle up for a rollercoaster of Laravel japes! ๐ข๐
Model Shenanigans (A.K.A Preparation)
Before we dive into the password reset hullabaloo, itโs crucial to ensure your applicationโs App\Models\User model is donning the fancy Illuminate\Notifications\Notifiable trait. Chances are itโs already wearing this in a new Laravel app, but who knows? Maybe itโs having an identity crisis and forgot its fashion sense. ๐ค
Next up, letโs check if your App\Models\User model is playing by the rules of the Illuminate\Contracts\Auth\CanResetPassword contract. Itโs a high-brow affair, but donโt worryโthe included App\Models\User model already knows its way around the ball and has been using the Illuminate\Auth\Passwords\CanResetPassword trait to do all the fancy footwork necessary to implement that interface.
Trust Fall (A.K.A Configuring Trusted Hosts)
Now, hereโs a little secret for you: Laravel trusts no one by default! ๐คจ If your app tries to send password reset emails from an untrusted host, itโll be like the Grinch stealing Christmasโno joy for anyone. To remedy this situation, we need to help Laravel learn who its friends are. Head over to the config/mail.php file and add any domain that might send emails on behalf of your app to the $trustedHosts array. Just make sure to keep it a secret from the Grinch! ๐๐คซ
Alright, letโs get this party started! Laravel is like the life of the server-side bash, and we all know that a good host makes for a great party (pun intended). By default, Laravel will greet every request it receives, much like a friendly bouncer at a bar. But just like you wouldnโt let just anyone into your exclusive VIP section, you donโt want every Joe Schmoe hitting up your app without an invitation.
Thatโs where trusted hosts come in! You see, by default Laravel will believe anything the Host header in HTTP requests tells it, but you can teach it to only trust certain hostnames. This is crucial when you start offering password resets and other sensitive operationsโyou donโt want strangers impersonating your users!
Now, most of the time, youโd want your web server (say, Nginx or Apache) to send over invites that match a specific hostname, but what if you canโt touch the web server directly? Thatโs when Laravel comes to the rescue with its trusty trustHosts middleware method. You can find this lifesaver in your applicationโs bootstrap/app.php file. Itโs like inviting only the cool kids to the party.
Want more deets on this middleware method? Check out our TrustHosts middleware documentation. Just remember, when it comes to your Laravel applicationโs security, trust is a two-way street! ๐๏ธ๐ฐ๐ฎโโ๏ธ
Alrighty, buckle up! Weโre about to embark on a daring quest to make our Laravel app as secure as Fort Knoxโฆor at least, your grandmaโs piggy bank. First stop: Password Reset Rodeo!
To kick things off, we need to define several routes. Think of them as the GPS for users whoโve lost their keys (passwords). Letโs start with a duo of routes that will guide our user through the wild west of requesting a password reset link via their email address. Yes, weโre gonna help folks who left their horses at home!
Next up, we need another duo of routes to tame the chaos when our cowboy (or cowgirl) clicks on that magical password reset link in their inbox and bravely completes the form. Itโs a wild ride, but donโt worryโweโve got their back (and their new, secure password).
Now, letโs saddle up and take a look at our first destination:
Yeehaw! Here be the routes for requestinโ that password reset link. Sit tight and hang on tight, partner!
-
POST method route:
/password/emailThis is where users send their pleas for password helpโvia email, of course! -
GET method route:
/password/reset/{token}Once weโve sent the magical link (the token), this is where our user lands to change that olโ forgotten password. Happy trail ridinโ, partner!
Ahoy, Captain! Youโve stumbled upon the swashbucklerโs guide to recovering your lost pirate treasureโฆ errr, password! ๐ดโโ ๏ธ
The Password Reset Link Request Form (aka the Treasure Map to Your Account)
When you find yourself locked out of your account like a prisoner in the dungeon, donโt fret! Weโve got the compass (or, rather, the password reset link) to guide you back to shore. ๐บ๏ธ
To set sail on this quest, follow these steps:
-
Navigate to the Treasure Island: First, visit your website and find the โForgot Your Password?โ link, typically nestled near the login form like a hidden treasure chest.
-
Fill Out the Form (aka Map Your Course): Once youโve found it, click on the link and prepare to fill out a form requesting your email address. Remember, X marks the spot!
-
Send the SOS (Save Our Ship): After submitting the form, youโll receive an email with a special link - this is your lifeline back to the island. Click on it to set foot on familiar land again! ๐ด
-
Reset Your Password (aka Plunder the Treasure): Now that youโre back, you can reset your password to something more secure than โletmeinโ or โpassword123โ. We recommend something like โparrot_on_my_shoulder78โ or โshiver_me_timbers90โ - just remember it this time! ๐ฆ
-
Set Sail for New Adventures: With your password securely reset, you can once again explore the seas of your website without fear of being captured by the Kraken (or forgetting your password). Fair winds and following seas, matey! ๐ช๏ธโ๏ธ
Alrighty then! Letโs dive into the heart of Laravelโs password shenanigans, shall we? First off, we need to set up some routes for requesting those darn password reset links. To kick things off, letโs define a route that spits out a view with our password reset link form:
Route::get('/gone-fishin', function () {
return view('auth.fish-password'); // Yes, we renamed it for fun!
})->middleware('notLoggedIn')->name('pass-the-lure');
Now, the view served up by this route ought to include a form with an email fieldโbecause who doesnโt love a good fishinโ email? This way, our users can cast their line for a password reset link at a specified address.
But what happens when they hit โSendโ? You ask! Well, my friend, thatโs where the magic really begins! The form submission will trigger some Laravel sorcery to generate a password reset link for the email provided and send it on its merry way. And just like that, your fishinโ buddies are one step closer to getting their hands on a fresh new password!
Alrighty then! Letโs dive into handling our โForgot Passwordโ form submission, shall we? This is where the magic happens โ when user panic sets in and they realize they canโt remember their secret superhero code.
First off, we need a route thatโs like a trusty sidekick to this form. This route will take the submissions from our โForgot Passwordโ view and handle โem with care:
Use your fancy hat (Illuminate\Http\Request), and the Password superhero (Illuminate\Support\Facades\Password) to create a daring duo!
Route::post('/forgot-password', function (Request $request) {
The email attribute is validated with strict scrutiny. No typos, no shenanigans, just the good stuff.
Password::sendResetLink($request->only('email')) takes over and plays the hero, using Laravel's built-in "password broker" to send a password reset link to the user in distress.
Depending on the success or failure of the operation, we return a friendly message to the user:
If successful, they get to go back with a smile, patting their own back.
If not, they get to stay put but with some helpful feedback for their email address.
})->middleware('guest')->name('password.email');
Now letโs take a closer look at this route! The requestโs email attribute is validated first, and our password broker (via the Password facade) steps in to send a password reset link to the user. This password broker guy knows his stuff โ he even uses Laravelโs built-in notification system to deliver the goods!
The sendResetLink method returns a โstatusโ slug, which can be translated using Laravelโs localization helpers for a user-friendly message. The language file responsible for this translation is your applicationโs lang/{lang}/passwords.php. Each possible value of the status slug has its own entry within the passwords language file.
Note
By default, the Laravel application skeleton doesnโt include the
langdirectory. If you want to customize Laravelโs language files, you can do so by using thelang:publishArtisan command.
And now for a little secret โ how does Laravel know where to find the user record in your database when calling the Password facadeโs sendResetLink method? The answer lies in your authentication systemโs โuser providersโ. The password broker uses these bad boys to retrieve database records. The user provider used by the password broker is configured within the passwords configuration array of your config/auth.php configuration file. To learn more about creating custom user providers, consult the authentication documentation.
Note
When youโre ready to take on password resets manually, remember that defining views and routes is all part of the job. If you want a helping hand with all the necessary authentication and verification logic, check out the Laravel application starter kits.
Remember: crime doesnโt pay (unless youโre a supervillain), but password resets are one situation where forgetfulness pays off!
Title: Getting Unstuck from Password Pickles ๐ฅ
Ahoy there, cyber sailor! If youโve found yourself in a bit of a password pickle (weโve all been there), donโt worry - Laravelโs got your back with the Password Reset Form. This lifesaver is designed to help you swim out of those sticky situations when even your trusty sea shanties canโt remember the lyrics! ๐ถ
Navigating the Password Reset Form
To reach our magical password rescue boat, follow these steps:
-
Getting ready to set sail: First things first, make sure youโve got Laravel installed and your sails are set for Sail (pun intended). If not, itโs time to anchor down and check out Laravel installation guide. Once thatโs squared away, hoist the mainsail and proceed! ๐ข
-
Preparing the Password Reset Form: Now we need to build our password reset form. You can use Laravelโs built-in
Make: Authcommand to generate all necessary views for you - simply run:php artisan make:authThis will create a bunch of files, including the password reset form located at
resources/views/auth/passwords/email. You can customize this form to fit your boatโs style! ๐ฅ๏ธ -
Rigging up the Password Reset Functionality: After youโve got your shiny new form, itโs time to rig up some password reset functionality. Open
app/Http/Controllers/ResetPasswordControllerand take a gander at the methods likesendResetLink,brokenToken, andreset. These are your new best friends on this journey! ๐คRemember, these methods will handle emailing the password reset link and taking care of the actual password resetting. All you have to do is make sure everythingโs properly connected - like a well-oiled shipโs engine! โ๏ธ
-
Setting the Anchor: Once your Password Reset Form is all set, itโs time to anchor down and test your new skills. Visit your application, click on the password reset link, and if everything goes according to plan, youโll be able to change that forgotten password faster than a seagull can snatch a French fry! ๐ฆ๐
And there you have it, matey! With Laravelโs Password Reset Form, youโll never again find yourself stranded in the sea of forgotten passwords. So hoist the Jolly Roger and set sail for smoother waters! ๐ดโโ ๏ธ
Alrighty then! Letโs get this password-resetting party started!
First off, we need to establish some routes thatโll make the magic happen when your user clicks on the password reset link sent via email and decides itโs time for a new password. Letโs create a route for when they land on our Password Reset Fortress of Solitude. This route will receive a token parameter, which weโll use later to verify their identity:
Route::get('/reset-password/{token}', function (string $token) {
return view('auth.reset-password', ['token' => $token]);
})->middleware('guest')->name('password.reset');
Now, the view that gets rendered by this route should be a dazzling display of HTML forms and CSS charm (but remember, weโre developers, not magicians). Itโll feature an email, password, and password_confirmation fields โ because who doesnโt love confirming their password twice? To make things super secure, hide the token in a secret field:
<!-- The password reset form -->
<form action="/reset-password-update" method="POST">
@csrf
<input type="hidden" name="token" value="{{ $token }}">
<label for="email">Email:</label>
<input type="email" name="email">
<label for="password">New Password:</label>
<input type="password" name="password">
<label for="password_confirmation">Confirm New Password:</label>
<input type="password" name="password_confirmation">
<!-- Don't forget the submit button! -->
<button type="submit">Change My Password</button>
</form>
And there you have it โ a password-resetting extravaganza thatโs as entertaining as it is secure. Keep on coding, superstar! ๐
Alrighty then! Letโs dive into the ticklish topic of handling a password reset in Laravel, shall we? First off, we need to set up a route that can deal with the shenanigans of our password reset form submission. This route will play the role of the bouncer at a club, verifying requests and updating user passwords in the database:
use App\Models\User;
use Illuminate\Auth\Events\PasswordReset as PasswordResetEvent;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Password as LaravelPasswordBroker;
use Illuminate\Support\Str;
Route::post('/tickle-my-password', function (Request $request) {
$request->validate([
'token' => 'required for the party',
'email' => 'required and dressed appropriately',
'password' => 'required, min:8 and password confirmed',
]);
// Laravel's password guru (via the Password facade) will now be in charge of verifying the validity of this password reset request.
$laravelPasswordBroker = new LaravelPasswordBroker($request);
if ($laravelPasswordBroker->checkCredentials()) {
// The password broker has granted us entry, so let's update the user's password in the database!
$user = User::find($laravelPasswordBroker->getUser());
$user->password = Hash::make(trim($request->input('password')));
$user->remember_token = Str::random(60);
$user->save();
event(new PasswordResetEvent($user));
return redirect()->route('login')->with('status', __($laravelPasswordBroker->getStatus()));
} else {
// It seems our password reset credentials were a bunch of baloney! Let's send them back to the drawing board.
return back()->withErrors(['email' => [__($laravelPasswordBroker->getStatus())]]);
}
})->middleware('guest')->name('password.update');
Now, letโs break this down. Firstly, we verify the token, email, and password attributes in the request. Subsequently, Laravelโs own password guru (via the Password facade) will validate the password reset request credentials.
If our credentials are deemed acceptable by this mysterious password guru, the closure passed to the reset method is invoked. This closure, with access to the user instance and the plain-text password from the form, handles updating the userโs password in the database.
The reset method returns a โstatusโ slug, which can be translated using Laravelโs localization helpers for a friendlier display to the user. The translation of this password reset status depends on your applicationโs lang/{lang}/passwords.php language file. If your app doesnโt have a lang directory, you can create it using the lang:publish Artisan command.
By the way, donโt be alarmed if youโre wondering how Laravel knows where to find your user record in the database when calling the Password facadeโs reset method. The secret lies within the Laravel password broker, which employs your authentication systemโs โuser providersโ to retrieve these records from the database. The user provider used by the password broker is configured within the passwords array of your config/auth.php configuration file. For more information on writing custom user providers, head over to the authentication documentation.
Cheers!
Token Timeout Tango! ๐ฐ๏ธ๐
Are you finding yourself drowning in a sea of expired password reset tokens? Fear not, dear Laravel enthusiast! This section is here to guide you through the fun and games of token termination.
If youโre using the database driver, donโt be surprised if these outdated tokens decide to linger around your database like an unwanted houseguest. But fret not, for we have a solution thatโs as simple as pressing a button (well, typing a command, but close enough). Introducing the auth:clear-resets Artisan command:
php artisan auth:clear-resets ๐๐โจ
But why stop there? If youโre the type who enjoys automation (and who doesnโt, really?), consider giving your applicationโs scheduler a fun new dance partnerโthe auth:clear-resets command!
use Illuminate\Support\Facades\Schedule;
// Cue the music and let's get this party started! ๐ฅ๐ถ
Schedule::command('auth:clear-resets')->everyFifteenMinutes();
Now, your tokens will clear out every 15 minutes, just like a well-oiled machine. So sit back, relax, and watch those unwanted guests scram! ๐โโ๏ธ๐ซ
Unleashing Your Inner Designer! ๐
Welcome, web wranglers! Ever wanted to customize your Laravel dashboard like a digital artisanal baker? Well, buckle up, because weโre about to embark on a wild ride through the Customization Frontier! ๐
First stop: Link Customization. Want to make those breadcrumb trails look more appetizing than a freshly-baked French loaf? Fear not! Simply follow this path: config/app.php, find the url array and bake in some personal taste with your very own link customization recipes! ๐ณ
Reset Link Customization ๐ (The Reboot Button)
Ah, the olโ reset button! Weโve all been there - when our design choices take a turn for the โuh-ohโ and we need a do-over. Donโt worry, weโve got your back! Navigate to database/migrations and run the migration with the magic number 2021_06_09_132347. After that, just sit back, relax, and watch as your links get a freshly-baked makeover! ๐
Now that youโve gotten your Laravel setup looking more like a Michelin-starred website than an average blogspot, go forth and conquer the digital world with style! Remember: good design isnโt just about looking pretty โ itโs about making users feel right at home. So, letโs get cooking! ๐ฝ๏ธ๐
Bon appรฉtit!
Password Reset Link Makeover: A Tale of URL Transformation!
Are you tired of the same old, dull password reset links? Fear not, my dear Laravel devotees! This section is here to elevate your experience with a dash of humor and a pinch of technical wizardry.
Letโs dive into the world of customizing password reset link URLs! Utilize the createUrlUsing method, an enchanting magical elixir provided by none other than the swashbuckling ResetPassword notification class. This spellbinding concoction allows you to weave a personalized URL for the password reset link โ perfect for adding some flair to your application!
The createUrlUsing method expects a humble closure, one thatโs eager to accept the user instance receiving the notification and the sacred password reset token. To cast this spell, you should summon this enchantment from the mystical boot method of your applicationโs fearless AppServiceProvider.
Use yer trusty sword (or import statements), Captain!
use App\Models\User;
use Illuminate\Auth\Notifications\ResetPassword;
Once you've donned yer armor, ye mighty coder:
/**
* Bootstrap any application services.
*/
public function boot(): void
{
ResetPassword::createUrlUsing(function (User $user, string $token) {
return 'https://example.com/reset-password?token='.$token; // Don't forget to replace with yer own website URL!
});
}
Now, go forth and customize those links like a true Laravel pirate! With this knowledge at your fingertips, you can make the world of password resets a little more exciting โ or at least, a lot less boring. Good luck, and may the force of Laravel be with ye!
Alrighty, letโs get this email customization party started! ๐๐พ
You donโt need a magic wand to whip up a personalized password reset email. Instead, grab your Laravel broom and sweep over the sendPasswordResetNotification method on your trusty App\Models\User model. Once youโve found it, sprinkle some custom flair on it!
Inside this magical method, you can create a custom notification class to send the password reset link like a pro. The password reset $token will be your trusty sidekick that youโll receive as the first argument. With the token in hand, craft a URL of your dreams and holler at your user with your snazzy notification:
use App\Notifications\ResetPasswordNotification;
/**
* Send a password reset notification to the user, but make it fancy!
*
* @param string $token
*/
public function sendPasswordResetNotification($token): void
{
$url = 'https://example.com/reset-password?token='.$token;
// Let's tiptoe softly into the inbox and surprise the user with a friendly greeting...
$greeting = "Well, hello there! We have some exciting news to share with you.";
// ...and send our custom password reset notification using the URL we just created.
$this->notify(new ResetPasswordNotification($url, $greeting));
}
With this newfound superpower, your users will be treated to a unique, personalized password reset experience thatโll make their day (and yours!).