Это видео недоступно.
Сожалеем об этом.

Auth in Laravel 8: Fortify and Laravel UI (without Jetstream)

Поделиться
HTML-код
  • Опубликовано: 12 авг 2024
  • There's a lot of confusion with Auth scaffolding in new Laravel 8. Let's unpack all of that, and I will show you how to generate the OLD version of "laravel new --auth" in new Laravel 8.
    0:00 Intro: Main Problem of Laravel 8 Auth
    1:29 Auth Scaffolding with Laravel UI
    3:28 Laravel Fortify: WHY?
    5:22 Auth Scaffolding with Fortify
    8:46 Generate Views for Fortify
    11:01 Thoughts on Laravel Auth Future
    Repo: github.com/LaravelDaily/Larav...
    - - - - -
    Try our Laravel QuickAdminPanel: bit.ly/quickadminpanel
    Enroll in my Laravel courses: laraveldaily.teachable.com

Комментарии • 216

  • @LaravelDaily
    @LaravelDaily  2 года назад

    Liked this video? I have many more: subscribe to my 30+ Laravel courses laraveldaily.teachable.com/p/all-courses-yearly-membership

  •  3 года назад +19

    Is cool that you are a critic inside the Laravel community, really help me to learn more and understand things better. This videos is just awesome.

    • @PovilasKorop
      @PovilasKorop 3 года назад +3

      Thanks Francisco, such comments give me additional motivation to keep going!

  • @phread6691
    @phread6691 3 года назад +1

    Thank you, thank you, thank you!!!!!! After reading that the old UI was deprecated, I was quite concerned about what I thought I had to do. I have enough going on and dealing with the new auth system was just not going to fit in my schedule anytime soon. However, thanks to you I will be able to upgrade to Fortify quickly and easily. Your description and step by step procedure helped a LOT.
    While I am not happy about this change, I do understand why the change was implemented. It makes a lot of sense now and seems to be a much better process than what we did before 8.x.
    Your video, as always, was/is a fantastic help!!!!!!! Thank you!

  • @wolli87
    @wolli87 3 года назад +10

    Found your channel a few days ago. Really nice content and good in-depth explanations to the Laravel-Cosmos. Keep up the good work!

    • @PovilasKorop
      @PovilasKorop 3 года назад +2

      Thanks, Wolli! Yeah I'm flying through that Cosmos and shooting video on things I find along the way :)

  • @whatdaro
    @whatdaro 3 года назад

    Thank you, you are a legend. Finally a video that not only explains what all the different parts are but also provides a clear and easy example how to implement the solution. Subscribed!

  • @cburg
    @cburg 3 года назад

    Thank you so much for this. Was having real trouble following older tutorials for auth, this was incredibly clear!

  • @fatih-araz
    @fatih-araz 3 года назад +3

    Great video. I don't like updates where you have to learn new frameworks where you have to mix all the js frameworks. But this video explains perfect how to work with your preffered js pramework. Great video!

  • @SunilKumawatbfcj
    @SunilKumawatbfcj 3 года назад +1

    No one knows what will happen in the update, but I am sure you will be available to help us. Thank you for the help and support. 🙏

  • @trueyolu1906
    @trueyolu1906 3 года назад

    Thank you very much!
    Your videos is amazing, everytime you give away something new.
    From your videos Im learn not only Laravel, but also best practices in code and how right to think.

  • @luiejohnmalimit
    @luiejohnmalimit 3 года назад

    I was looking for this. It all became clear to me with all the laravel mess.

  • @TechnoTrace
    @TechnoTrace 3 года назад +5

    You know something, it's very easy when someone like you is making the concepts clear about the changes in the technology. Because most of the time I don't get to read all the documentation and also don't know the tricks to follow when creating a new project with new laravel.
    Your support is utmost important to us because when the technology changes suddenly then it becomes a disaster for us to create new projects quickly as it is most often required with running clients, you know ☺️☺️.🙏🙏
    I'm very pledged to have your support Povilas.🙏🙏
    I also follow you on LinkedIn and here on RUclips. Please continue to inform about the ways to improve time and quality on laravel projects as you do. Continue your great work Povilas 🙏🙏.☺️ I'm Techno Trace. Peace👍

    • @PovilasKorop
      @PovilasKorop 3 года назад +4

      Thanks for the support, I feel that community need such videos from me, so will keep shooting them :)

    • @TechnoTrace
      @TechnoTrace 3 года назад

      @@PovilasKorop ❤️❤️❤️❤️❤️❤️❤️❤️❤️☺️☺️🙏🙏

  • @joshbarros1995
    @joshbarros1995 2 года назад

    Thanks a lot for this tutorial!
    I'll try this with Vue2, Vuex, Bootstrap5 tomorrow!
    A more "hybrid" laravel approach... without Inertia.

  • @fylzero
    @fylzero 3 года назад +1

    This video is amazingly helpful. Thank you for all you do, good sir!

  • @arniep0123
    @arniep0123 3 года назад

    Thank you so much for this explanation. I was frustrated thinking I was being "forced" down a certain tech stack. This makes perfect sense the direction the Laravel team is taking. Great vid.

    • @ShabbeyRoadMusic
      @ShabbeyRoadMusic 3 года назад +2

      I think Laravel has been gently "forcing" people toward certain stacks for several versions. I don't think I'm even going to bother with Laravel 8. I installed L7, am watching vid for Laravel 6 (cuz there's not really a comprehensive vid for v7) and will most likely stick with that. I agree with everyone saying it's changing too fast. Feels like someone just said "Let's release a new version every xx months" without any real justification. At some point, it needs to "mature" or people will find something more stable.

  • @yassershahine7445
    @yassershahine7445 3 года назад +1

    I am like new comer to Laravel.. I started learning Laravel 7 and quickly I faced Laravel 8. I was In a chaos situation and your video really really HELPED me a lot. THANK YOU sir.

    • @ShabbeyRoadMusic
      @ShabbeyRoadMusic 3 года назад

      There's no rule that says you must use the latest version. They change this product too quickly for my purposes & I'm not willing to sacrifice valuable business development just to learn their latest thing.

    • @yassershahine7445
      @yassershahine7445 3 года назад +1

      @@ShabbeyRoadMusic
      They made the release of new versions every year instead of 6 months. Enjoy!

  • @emranitan6221
    @emranitan6221 3 года назад

    i hope you read my comment ....lens you are great person i dont know what to say but really thank you from my heart ,,,,,helping ppl is great thing

  • @axeman2638
    @axeman2638 3 года назад +58

    Laravel is changing too fast for anyone to keep up, the documentation is lagging and it's looking like feature creep is the current model of development.

    • @LeTrolli
      @LeTrolli 3 года назад +8

      Never use anything else than the basic framework and one or more very specific and useful plugins.
      Laravel UI, Fortify, ... are completely useless.

    • @nishantgupta1854
      @nishantgupta1854 3 года назад +1

      @@LeTrolli yea in long term these are pretty uselss

    • @JohnSmith-zl8rz
      @JohnSmith-zl8rz 3 года назад

      @@LeTrolli Curious, so what do you use for auth? or views? Nuxt? or?

    • @markusschindler4376
      @markusschindler4376 3 года назад

      @@LeTrolli totally agree

    • @pietrobattiston6667
      @pietrobattiston6667 3 года назад +2

      All these changes are making my developer experience with Laravel very frustrating

  • @sethhene6730
    @sethhene6730 3 года назад

    Wow, this is soo helpful.
    Thanks for this tutorial, keep up the good work

  • @dezetzede1382
    @dezetzede1382 3 года назад

    Penjelasannya singkat padat dan mudah untuk saya sebagai nubie untuk belajar. Alternatif menggunakan fortify, livewire lebih mudah bagi nubie.

  • @JustMillIt23
    @JustMillIt23 3 года назад

    While copying the public css and js is a good temporary solution, I ended up having to require laravel/ui in the new app with fortify and run php artisan ui bootstrap, followed by npm install && npm run dev to get the changes to stick in the new app. GREAT TUTORIAL! THANK YOU!

  • @smkishtiak
    @smkishtiak 3 года назад

    A lot of things were made clear in this video! Thanks a ton!

  • @ShabeebRizvi
    @ShabeebRizvi 3 года назад

    Exactly what i have been waiting for... LOL Need to checkout Thanks!!!

  • @megh219
    @megh219 3 года назад

    great video. I understand the whole fortify fiasco much better now.

  • @ShabeebRizvi
    @ShabeebRizvi 3 года назад +6

    Good job! Would love to see a complete video (frontend using bootstrap and fortify) on HOW TO ENABLE TWO FACTOR VERIFICATION without JetStream! Thanks 🙏

    • @JohnSmith-zl8rz
      @JohnSmith-zl8rz 3 года назад

      Exactly, how HOW TO ENABLE TWO FACTOR VERIFICATION without JetStream! or User Delete his own account.

    • @ShabeebRizvi
      @ShabeebRizvi 3 года назад +1

      John Smith I have the very same question! Probably will try to look into it this weekend! 😊

  • @theekingyodah1431
    @theekingyodah1431 2 года назад

    this was really helpful , clearly explained 💯

  • @bhaidar
    @bhaidar 3 года назад

    Amazing videos as always! Can you share with us a video on implementing a Multi-tenant app in Laravel, either from scratch or using/setting up a good package? Thanks

  • @larslommen9098
    @larslommen9098 3 года назад +1

    Really helpful, thanks

  • @2008rol
    @2008rol 3 года назад +38

    I think Laravel auth changes too fast. I still like php artisan make:auth

    • @lexxluey
      @lexxluey 3 года назад

      @Madushan Jayawardane COSIGNED

  • @Alihamza-cf6ty
    @Alihamza-cf6ty 3 года назад

    Thanks for such helping video

  • @chhunheangpin6421
    @chhunheangpin6421 3 года назад

    Thank you for the video!!

  • @Kalexy91
    @Kalexy91 3 года назад

    Great video! Thanks man!

  • @BudiSantoso-er6cq
    @BudiSantoso-er6cq 3 года назад

    Great video, thanks Master. God bless you..

  • @lwandilerozani8592
    @lwandilerozani8592 3 года назад

    What an interesting date choice to release a new Laravel package 🤔

  • @ErnestoFlames
    @ErnestoFlames 3 года назад +1

    I love the way Povilas loves Laravel but he's professional enough to say publicly what he doesn't like about the new changes. This video helped me a lot to understand the changes because I have been using Laravel since 4.2 and it has never been so difficult to understand the documentation, I remember that before it was not even necessary to install packages, only Laravel and that's it.

    • @ErnestoFlames
      @ErnestoFlames 3 года назад

      After I wrote the comment I realized there is a third package called Breeze, as I understood, this package solves the problem of copy/paste the views from another project.

  • @paweupawel8890
    @paweupawel8890 3 года назад

    you really explained very well

  • @GujaratiMotivationFacts
    @GujaratiMotivationFacts 3 года назад

    Thank you so much for this.

  • @Asifkhan-dl4so
    @Asifkhan-dl4so 3 года назад

    Thanks for the video

  • @chamathviranga619
    @chamathviranga619 3 года назад

    thank you, you saved my day

  • @nargeshrana3740
    @nargeshrana3740 3 года назад

    Thanks! video is very useful.

  • @flamme8587
    @flamme8587 2 года назад

    im gonna keep ui+adminlte login views
    this combo always worked for me

  • @chiragdabhi07
    @chiragdabhi07 3 года назад +1

    thank you sir helpful video is beginner

  • @computer23able
    @computer23able 3 года назад

    Thanks , it's so useful

  • @impulserr
    @impulserr 3 года назад +3

    So thats not only me who got confused by new auth ;) I prefered much more old way, generate auth with just simple bootstrap views. From simple framework auth generation they changed it into "you need to find your workaround" ;p

  • @alisleem1626
    @alisleem1626 3 года назад

    I founs ur channel recently and i really like it but i am little confused , can u make video telling us beginners where to start and how to make the best out of ur amazing videos 😄

  • @jfarber55
    @jfarber55 Год назад

    I do the same with Laravel 10.1, copy all blade files from ui installation into my new laravel proyect with fortify. I only needed to install some packages via npm like saas, bootstrap & popperjs/core. Next of this, all the instructions runs perfect and I have my proyect already with Fortify and Blade (ui blade files copied)

  • @jaydevgodvaishnav9433
    @jaydevgodvaishnav9433 2 года назад

    Thanks for help

  • @youssefamad88
    @youssefamad88 2 года назад

    Thank you so much

  • @issaissifou3579
    @issaissifou3579 3 года назад

    Thank you!

  • @nikhilagrawal2507
    @nikhilagrawal2507 3 года назад

    *Useful video* Nice trick :) :)

  • @kydva
    @kydva 3 года назад

    Thanks!!

  • @earhackerdem
    @earhackerdem 3 года назад

    I love this channel

  • @Xirismenos
    @Xirismenos 3 года назад

    Great tutorial!
    I have a big problem. How to configure routes and change the default login, register etc? How to separate roles users and admins into different tables?
    Is there any lesson to customize this package or any package from the composer?

  • @kadirookirim3231
    @kadirookirim3231 3 года назад

    thanks Sir .

  • @SiadaApius
    @SiadaApius 3 года назад

    thanks mate

  • @kbenanos8626
    @kbenanos8626 3 года назад +2

    Please can you do a video on multi authentication with laravel 8?

  • @marceloAK1
    @marceloAK1 3 года назад

    Hi, thanks a lot for the videos!!! Is there any way to disable auto-login after registration? I want to add new users only using a registered user (like admin for example).

  • @sparkqy135
    @sparkqy135 3 года назад

    Can I set up Fortify to have multiple login/register routes? I need one for regular users and another one for admin (they should have different url and views).

  • @TheOne13337
    @TheOne13337 3 года назад

    I hate the direction where Laravel is going. I loved how before all the routes were in the route file and you had full control of everything. Now all the auth routes are included with oneliner and it is harder to modify those routes if you need to.

  • @raghavkumar6292
    @raghavkumar6292 3 года назад

    Hi sir
    how to handle the kyc data of already existing project in larvel

  • @lordgodgiven
    @lordgodgiven 3 года назад

    Hello,
    I'd like you know how create a lockscreen, such as on windows, instead of to close session, i just lock it and when i want to use computer, just enter password

  • @MiniPinho098
    @MiniPinho098 3 года назад

    Hi, thanks for the Video! however, I have the same bug as u at 5:54 minutes for the PHP artisan migrate but unlike u I don't know how to fix it... and I don't understand what those credentials are...

  • @hosseinhaghparast5670
    @hosseinhaghparast5670 3 года назад

    is there any way to use 2fa with passport? i need to have both OAuth2 and 2fa in my applicatin

  • @iHariPatel
    @iHariPatel 3 года назад

    I been trying login from yesterday,

  • @eugenemirt4921
    @eugenemirt4921 3 года назад

    Hello. Can you make a video about authentication using only Auth? I'm confusion why we need to use staff like Fortify that are unreadable (ex views located in providers). Can we just make controller and view? im missing somthing?

  • @marcopilaric4257
    @marcopilaric4257 3 года назад

    Is there a way to make the email verification link in fortify work only once?

  • @ho6y
    @ho6y 3 года назад

    How could you apply a guest middleware to Fortify?

  • @1309CV
    @1309CV 3 года назад

    My current problem with the new scaffolding, and Fortify in general, is a lack of obvious (or clear) control and customization. With Laravel UI, the controllers were available to us on the fly, and were (arguably) a clean and fast approach to take control of the authentication pipeline, and customize the process for your project needs. We now have to follow an awkward path to take back control. Changing things in the boot method feels 'wrong', tedious, and isn't that clean.
    It's a frontend agnostic authentication, so that's a nice focus back on to backend. That part is a step in the right direction. Everything else I mentioned above, however, feels like a step backward.

  • @benedicthumpert5664
    @benedicthumpert5664 3 года назад +2

    Thank you! I almost threw Laravel in the garbage can ...

  • @jerrychian
    @jerrychian 3 года назад

    I'm very new for laravel and follow your video to to learn about everything, but after register the website i meet a problem with "These credentials do not match our records." I really sure about the every login information is correct!. so I don't know how to fixed , could you provide some suggestion to me?

  • @eokwukwe
    @eokwukwe 3 года назад

    Thank you for another amazing tips as always. Is there a way to use fortify for RESTful API authentication? I am more of a backend guy.

    • @PovilasKorop
      @PovilasKorop 3 года назад

      For RESTful API you have Sanctum/Passport, Fortify has nothing to do with API.

  • @ervanrhermawan2380
    @ervanrhermawan2380 2 года назад

    I already followed steps on Generate view for Fortify (8:46) but I keep getting the same view like in 9:41
    can you help me with that?
    thanks

  • @himanilsharma2147
    @himanilsharma2147 2 года назад

    also I had went through your other video of using laravel ui and auth pages are not applied with any css, So I went to git and search in the laravel ui project and found css and js files were missing in my project, However I copied them in my project folder but they are not being used up by project !! :/ I changed I extension of one file with .scss to css nothing happens except resolving syntax errors in .scss file. Its been 8 days and I am struggling with just understanding how this auth thing will actually work properly...
    Whereas in php, in 8 days I had learnt it from scratch and made a billing project!! Please suggest what should I do... I am being hopeless day by day

  • @robdorn420
    @robdorn420 3 года назад +1

    Thank you again for making a great informative video. Can you please make a video about how to create traditional vue.js views in Laravel 8, without the use of inertia.js? That would speed up my conversion from Laravel 7 to Laravel 8 in the near future. I dislike the idea to convert to much to accommodate inertia.js.

    • @PovilasKorop
      @PovilasKorop 3 года назад +1

      Nothing actually changed in Laravel itself. You can use the same Vue as you did before, Inertia is required as one of the options only if you use Jetstream for scaffolding. Which, as I've shown in this video, you don't HAVE to do. It's optional.

    • @robdorn420
      @robdorn420 3 года назад

      @@PovilasKorop Thank you, then I will go and start using 8 asap:)

  • @emmanuelugwuoke967
    @emmanuelugwuoke967 3 года назад

    Thank you for this video ☺️. Now I understand fortify more. How can we go about multiple auth scopes in fortify?

    • @PovilasKorop
      @PovilasKorop 3 года назад

      Not sure, haven't tried.

    • @emmanuelugwuoke967
      @emmanuelugwuoke967 3 года назад

      @@PovilasKorop alright. I look forward to more tutorials on fortify 🤞

  • @GianmarcoGagliardi
    @GianmarcoGagliardi 3 года назад

    What are the benefits of using Fortify and Laravel UI without without Jetstream?

  • @Pb-pj8ft
    @Pb-pj8ft 3 года назад

    After logging in, the profile menu doesnt dropdown. Also what about the logout functionality?

  • @youssh4975
    @youssh4975 3 года назад

    what if the login route redirects to a white page?

  • @dmdk8301
    @dmdk8301 3 года назад

    I am totally confused after Laravel 8. What if difference between Fortify and Sanctum? Do i need both of them for my SPA project?
    In Laravel6+Nuxt|Vue i used passport for tokens. And now i cannot even start( Laravel was really great and quite easy to start. Now - its a quest((

  • @gianfrancobriones
    @gianfrancobriones 3 года назад

    11:46 "IT'S A MESS" It's a mess that I even skipped the login/auth functionality of my app and I'm already half-way through finishing it.

  • @princeacheampong2837
    @princeacheampong2837 2 года назад

    How do I manage the users created here

  • @longpham6582
    @longpham6582 3 года назад

    I got a bad method call error. how to fix it now

  • @wandyy.d1235
    @wandyy.d1235 3 года назад +2

    Hi there! Thanks A LOT for your video (information)
    I want to put it as one-word - COMMUNICATION
    Kind of agree with you in this video (on the latest section about Laravel 8) and as @Thinkverse mentioned (on your pinned comment).
    Please, correct me if I'm wrong on my personal opinion on how they should handle this -
    Not to offense Laravel 8 team with their sudden changes, maybe, they should doing a kind of BETA TEST - which open to public, so everyone can see / check what they did in the coming version.
    Think about it as a OPEN BETA TEST on the game, where players can play the game and expecting - "Ohh there's bug, it's okay, I know this is a BETA game, so now, I will let them know about this bug and hopefully the Dev team can check and fix this".
    Maybe they can limit WHO or HOW many people - can join the BETA TEST, so there won't be too many comments / feedback on BETA TEST.
    I don't want to compare one product with others, but, let's take a look as an example - Bootstrap 5 (I think most of us already notice that), they didn't just release that to public, without any prior notes or documentation. Rather, they let all of the user know "Hey, Bootstrap 5 is here soon! We put it on Alpha Test. We don't recommend you to use this on production yet, but, if you want to play around with it, here's the link to get it Bootstrap 5 Alpha"
    ---
    Apart from this little "chaos" - thanks to Laravel, I got sooo many experience in building web application / else - because of them, I got to a level where I can learn how to "learn" things around
    FYI - first time after a very very long time, I'm just a watcher (someone who's just watching youtube video without commenting / like) - and this video makes me want to comment and giving a support to this community (this channel and Laravel).

    • @PovilasKorop
      @PovilasKorop 3 года назад

      Yes, I've pinned Thinkverse's comment because he expressed what I thought in an even better way than I would have.
      And I agree very much with your thought, too (thank you for such a long comment, by the way).
      Laravel way of launching things has been always like Apple or a similar company, with some marketing effect - some secrets with anticipation growing, and then BOOM - we have something new (Nova, Spark or whatever at that time).
      It has the marketing effect for sure, but in this case, it wasn't just a NEW tool presented - it was CHANGING OF THE OLD TOOL. And for this case, specifically, I do agree they needed to approach it differently, slowly, and more openly from the beginning, and not launching docs/articles AFTER SHITSTORM BEGAN.
      I hope Taylor will learn something from it, that it's not only about cool tools he's launching, but also taking care of the old LOYAL users of the framework who don't necessarily want to switch to new tools.
      As a framework, it needs to have as few surprises as possible, otherwise in the long run clients/developers won't trust it as a future-proof solution.

    • @wandyy.d1235
      @wandyy.d1235 3 года назад

      Right! The Apple strat! (I was wondering what it is, since it feels something similar before)
      In this particular case, that strategy is not really good, instead, giving a little "chaos" to themself and of course us
      I do really agree with your statements, especially about the "future-proof". At the moment, I couldn't make many movement related to Laravel and closely watch their updates and see what else being adjusted
      Aside of this, let's continue to support the community and hope they won't surprise us with any "chaos" again
      Thanks again for your insight!

  • @humamal-majdalawi8012
    @humamal-majdalawi8012 3 года назад

    Great video thank you, It will be really good if you can explain how laravel using jetstream with fortify, their code is not clear and not easy to understand, I saw they are using pipeline class to connect them..if you can at least explain it to me here.. Thank you

    • @PovilasKorop
      @PovilasKorop 3 года назад +1

      Can't comment because I haven't tried Jetstream deeper, personally I don't like Jetstream's idea at all, but probably I will be forced to shoot a video on it, because my audience is curious about it.

  • @HaizadAnnuar
    @HaizadAnnuar 3 года назад

    Hi, I liked on the part that you mentioned Laravel stays as a backend framework 11:58 . But can I just use Lumen as the backend? What makes Lumen different from the others? I was thinking to build app using Lumen as backend with Vue.js or other Laravel project as frontend. Do you think that Lumen is a good choice and relevant to use on these days? Thank you.

    • @PovilasKorop
      @PovilasKorop 3 года назад

      Lumen 8 has been just released, and read the comments under that post, you will get the picture: www.reddit.com/r/laravel/comments/itw39p/lumen_80_has_been_tagged_and_released/
      Personally, I never used Lumen and never really understood its purpose.

    • @HaizadAnnuar
      @HaizadAnnuar 3 года назад

      @@PovilasKorop Thanks for sharing the link :)

  • @marcinmaj3609
    @marcinmaj3609 3 года назад +17

    What A mess with new auth...

  • @megavolkan
    @megavolkan 3 года назад

    What i'm really confused about Laravel is that they add new features that are too obvious to be removed/ditched in near future versions. For example UI forms abandoned, Bootstrap is abandoned. I'm sure Tailwind will be abandoned too at some point. I'm open to changes (and change is good/inevitable) but when it comes to Laravel i feel like Laravel is not something to rely on. Pushing out auth scaffolding with mandatory js (and css like tailwind) is not good. I'm a php developer but what if i'm not preferring to learn js frameworks? Do i have to? Obviously not. Would it be good for me? Why not, but i have no time right now. What i learned about Laravel is if anything is related to ui it will be ditched sooner or later.

  • @creeddm
    @creeddm 3 года назад

    How would you setup authentication for laravel 8 API only app with separate frontend like Nuxt? Would you still use Fortify for that?

    • @PovilasKorop
      @PovilasKorop 3 года назад

      I wouldn't change anything, would use the same old Auth with Laravel Sanctum, Fortify is optional.

  • @alienheartz9163
    @alienheartz9163 3 года назад +2

    Hi, thank you for a great tutorial. I have question, currently I'm using Inertia.js + react and I created login and registration manually. What about password reset or e-mail confirmation? How can I do manually? Should I install some package or Laravel has built in function to handle this? Best regards.

    • @alienheartz9163
      @alienheartz9163 3 года назад +1

      I actually saw the documentation hahaha, nevermind , thank you for tutorial and have a great day!

    • @gianlucasgalati1008
      @gianlucasgalati1008 3 года назад +1

      is there a way to use a vue/react view like a login with inertia js and implement it with fortify? Currenty i installed jetstream and fortify and by default the /login route goes to a blade created by jetstream

    • @alienheartz9163
      @alienheartz9163 3 года назад +1

      @@gianlucasgalati1008 I created login view and etc. based on React with Inertia.js, but I didn't use fortify. If you want to just have a simple registration/login, you can do it manually by reading a docs of laravel. I will check the fortify and let you know what we can do with it.

  • @RahulSingh-os7kv
    @RahulSingh-os7kv 3 года назад

    Sir make a video on fortify Multi authentication with multiple table like admins or authors

    • @PovilasKorop
      @PovilasKorop 3 года назад

      My tweet about it today: twitter.com/PovilasKorop/status/1314214731557863424

  • @dayronbornot6153
    @dayronbornot6153 3 года назад

    Hi Povilas. Its posible use directly the Fortify functions for customize my own views or the way to show them...for example, use a Livewire component and develop the 2FA reusing the Fortify code? Its possible?

    • @PovilasKorop
      @PovilasKorop 3 года назад

      Possible, I think this is done similar github.com/zacksmash/fortify-ui

    • @dayronbornot6153
      @dayronbornot6153 3 года назад

      @@PovilasKorop I made it. I reused the jetstream TwoFactorAuthenticationForm with ConfirmPassword trait and works perfectly. Thx

  • @abcoolguy
    @abcoolguy 3 года назад

    hi povilas, i tried laravel 8 with jetsteam and livewire. It doesnt seem to work on ie11. Any suggestions to fix this?

    • @PovilasKorop
      @PovilasKorop 3 года назад +1

      I don't work with IE11, so no idea, sorry.

  • @CalicoArchives
    @CalicoArchives 2 года назад +1

    I wish Jetstream had a plain HTML option.

  • @pamaju
    @pamaju 3 года назад

    Hi! This tutorial has helped me a lot to understand fortify. Unfortunately I don't know and I can't find a way to modify the key strings for the localization of Fortify messages. These don't follow the strings published in the validation.php

    • @PovilasKorop
      @PovilasKorop 3 года назад

      Which messages exactly? You can take a look at the actual Fortify code on Github and see how they implemented, for example validation messages for Login are default: github.com/laravel/fortify/blob/1.x/src/Http/Requests/LoginRequest.php

    • @pamaju
      @pamaju 3 года назад

      Thanks for your answer, I was referring to the Password.php file in the messages function:
      github.com/laravel/fortify/blob/1.x/src/Rules/Password.php
      Is there any way not to hardcode the
      $this->length?

    • @PovilasKorop
      @PovilasKorop 3 года назад

      @@pamaju No idea, you should raise an issue there, or a PR with your suggestion how it should work.

    • @pamaju
      @pamaju 3 года назад

      @@PovilasKorop
      Oh! An hour ago a PR was made to be able to more easily modify these lines. Thanks!
      github.com/laravel/fortify/pull/70

  • @NirajGhimire
    @NirajGhimire 3 года назад +2

    If you love the old way (Laravel 6/7) of generating auth scaffolding in Laravel 8. Simply
    composer require laravel/ui
    php artisan ui vue --auth
    just remove the version of laravel/ui from laravel 6/7 documentation

    • @tanzimibthesam5861
      @tanzimibthesam5861 3 года назад

      It's good liking it but it will be deprecated in future as many says

    • @NirajGhimire
      @NirajGhimire 3 года назад +1

      @@tanzimibthesam5861 nobody knows about future.

  • @JohnSmith-zl8rz
    @JohnSmith-zl8rz 3 года назад

    I think Taylor was wrong when they say this "I doubt many people will use Fortify directly... mainly through Jetstream's usage of it."

  • @NebsterSK
    @NebsterSK 3 года назад

    Hi Povilas, first of all thanks for this video, I too was really confused from all the Laravel "authentication" packages. Secondly... L8 changed default app/Exceptions/Handler.php quite a lot. Methods report() & render() were replaced by register(), but for the love of god I dont understand whats the difference and if I have to do something with custom code I have in report & render methods. Would you be so kind and make a short video with explaination please?

    • @PovilasKorop
      @PovilasKorop 3 года назад

      I haven't worked on Exceptions customization in Laravel 8, this change is a surprise for me, too. Well, I guess you need to read the docs on how to use it: laravel.com/docs/8.x/errors

    • @PovilasKorop
      @PovilasKorop 3 года назад

      Looking at it, you can still provide two old methods: laravel.com/docs/8.x/errors#renderable-exceptions

  • @ajithlal1688
    @ajithlal1688 3 года назад

    I was also confused, when it comes to know that laravel/ui is no longer used. Then i started using jetstream for my new project and tackling the code to customise. Now I don't know how to add role based access control, like admin and registered user, admin panel design for admin and custom ui for normal user.

    • @PovilasKorop
      @PovilasKorop 3 года назад +1

      Yeah, customizing Jetstream or Forfity is a separate topic, I'm planning to investigate and shoot video(s) about it.

    • @ajithlal1688
      @ajithlal1688 3 года назад

      @@PovilasKorop I'm also investigating on that. May be I will write a blog on that. But I didn't wrote any blogs yet.

  • @blog4lives
    @blog4lives 3 года назад

    I recently migrated from my current laravel 7 project to 8, is it advisable to get started with jetstream / fortify and how could you best do that with an existing project? So far I mainly find tutorials that start from a new project, but not from an existing project.

    • @PovilasKorop
      @PovilasKorop 3 года назад

      For existing projects, you should not use them. Those packages are for quick START.

    • @blog4lives
      @blog4lives 3 года назад

      @@PovilasKorop Hmm too bad there is no bootstrap support, must say that I would like to use that teams option and the 2 factor method

    • @PovilasKorop
      @PovilasKorop 3 года назад +1

      @@blog4lives Those two are not THAT hard to implement without any Fortify. Much easier than change all your internal systems and switch to Fortify.

  • @dgloria
    @dgloria 3 года назад

    Hi, I'm struggling with eloquent and want to head back to usual query, but first I ask you maybe you have some time to help me out.
    My issue is that I have a join table which has a foreign key that is related to more than one table, so that I can't name it drivers_id, because it is also related to three other tables. Is there a way to make a function to use this relationship where I determine the foreign key name, instead of
    ```
    class Property extends Model
    {
    public function driver()
    {
    return $this->belongsTo('App\Driver');
    }
    }
    ```
    My foreign key is called properties.prop_link_id and not drivers_id that causes a problem, and I don't want to change it, because I won't be able to use it elsewhere.
    I can't find anything about this in the documentation, no complex queries are described there.
    Also I am struggling to decide where to store my complex queries if not in Controller and not in Model. I assume both should be kept tidy so my queries need a home to stay.

    • @PovilasKorop
      @PovilasKorop 3 года назад

      You can do belongsto (App\Driver, prop_link_id) - second parameter is a field name

  • @johnwesley2090
    @johnwesley2090 3 года назад

    can you provide the latest update on this video. documentation is also changing fastly

    • @LaravelDaily
      @LaravelDaily  3 года назад

      I don't think much has changed for Fortify and Laravel UI in the last months. What exactly do you need the update on?