YouTubevideo· Jun 20, 2024· 8:11

This New Auth Package Makes Things Even Easier

Watch on YouTube ↗

transcript

20 moments
  1. so the JavaScript ecosystem doesn't get to have all the fun anymore when it comes to well-designed and easily customizable login Pages now if you have ever thought hey I wish I made that login or registration Page look better now you can just make it happen with off

  2. by Dev Dojo so this sth package is by the dev Dojo team by Tony Leia and it's one of the things that I've been loving and diving into and I want to install it on a video and just show off some of the features that it has some of the things that I've really loved and the things I'm really looking forward to as well it's build as this customizable offscreen specifically for your lville

  3. app you can easily add authentication features with the flip of a switch and then customize it to fit your brand and so the ease of use to be able to customize it things like adding a logo can all be done without actually touching the code it's all just like a setting screen and that works great if you just don't want to have to think about it a lot of times you know I just use larel Breeze and I just change out the logo but if I ever needed to add social authentication then I have to like redo all those pages this seeks to

  4. improve that this seeks to help that flow so why don't we install it okay I'm going to start off by creating a new lar application we'll just call this larel new pretty o and we'll go ahead and use Breeze with the class API with lay of a volt no dark mode all these will be

  5. default but then we'll ins install this off package and see what are the features uh that it has for us hey real quick did you know that over 80% of you who are watching this video right now are actually not subscribed so why don't you do yourself a favor and do me a huge favor and hit that subscribe button thank you so much for your support and let's get back again we'll just run all the normal migrations the normal setup

  6. and then we'll go ahead and install this o package and see what it has to offer for us perfect we'll go into our pretty o folder and then we'll go ahead and composer require Dev Dojo o here we go now let's look at the installation settings so we're going to install it for Breeze starter kit and we'll need to publish the config and migrations let's go ahead and do

  7. that perfect and we can run PHP Artisan migrate all right let's see what we're up to next now will need to extend the dev Dojo user model from your default user PHP model and then add this to the class okay so as off user and then

  8. extends off user let's go ahead and pull up our code okay use this and then we'll extends off user perfect so yeah it looks like we're we're moving that authenticatable and just using this extends off user instead now we can remove the guest authentication routes from off. PHP off.

  9. PHP um actually we'll go to the routes file and then we'll remove the guest routes okay enable the name field for registration so off setup settings why don't we go ahead and take a look at what this off setup does so we'll go into our warp um this is my code edit or this is my terminal excuse me and I we'll run herd open since I'm using lville herd and that just automatically pulls it up here here perfect now why don't we go to I believe it said off

  10. setup now look at this this is the authentication setup page where we have the ability to change appearance any social providers we want to add as well as just normal settings and it said we need to enable the name field so we'll go ahead and do that it looks like it's automatically saved um let's go back into our homepage and see what this looks like and register you can see right out of the gate it just looks really nice so we have the

  11. the these these nice animations when we click into each one of these fields we have um the difference between sign in and sign up Pages these links that are ready to go um let's go ahead and sign

  12. up okay and then just everything works as you would expect so um it doesn't change the functionality of of any starter kit that you use whether that be Breeze or Jetstream or even filament it just changes the login and password requests and password verification and registration Pages why don't we go back into that setup and see what kind of settings there are for us so we have o/s

  13. setup and I believe let's take a look at these settings I believe this is only customizable within a local setup so we the ability to change an appearance change colors as well as a background like if I wanted to change this background color to a blue and then

  14. maybe for colors um let's say the text color is going to be uh more of a darker darker blue here then why don't we take a look at what that looks like in our actual setup log in and there we go now we have that background screen kind of already ready for us okay why don't we change this to left aligned okay let's see what that looks

  15. like there we go we have this easy to install easy to enable and then easy to customize setup where everything just works for us so if you wanted to you know upgrade your existing applications login and registration Pages without having to actually touch the code and and do all that yourself this is the perfect package to do it looks like if you have

  16. if you set the EnV variables for you know any of these social providers you can just turn it on and it automatically works I wonder if I don't have it installed if I if I would if automatically give it yeah just continue with Facebook that's as simple as it is like if I want to do you know all these even though I don't have the actual client IDs and secrets in my code just yet it automatically gives me those

  17. options I love it we have the ability to set specific settings so um like enable two fact authentication as well as email verification if we wanted to and then we even have the ability to change specific language uh so modifying the actual

  18. layout and the actual wording of these pages instead of just having to modify the the customization in terms of colors and branding and styles so if I want to say TFA challenge for here looks like an addition enables authentication events so you can kind of hook into when something happens so all that's automatically set up for you so if something like a login actually happens then you can do whatever you want with that login event in your code

  19. it's a nice little touch overall I love what the dev Dojo team and specifically Tony Le have put together with this off package it really just allows you to get up and moving even faster without having to worry about that customization or that flexibility and brand this how you

  20. might like now yes the breeze or the jetstream authentication Pages out of the box might work great but as soon as you need to add you know social login or maybe two Factor authentication then those are pages that you usually have to build yourself of course you can B pull in a package but if you want one cohesive uh flexibility one cohesive package and look across your whole application well this is a great starting point so why don't you try it out and keep creating \[Music\]

just you here