91
saliu74
6y

My Boss: How long will it take to create login and registration page?
Me: 30 seconds.
Boss: You can't be serious.
Me: (Spinned up Laravel, entered comand - php artisan make:auth
Me: (To Boss) It's done.
Boss: What!

Comments
  • 11
    You mean to say php is useful?
  • 11
    Or is it Laravel that is useful?
  • 5
    I really need to try it.
    I am too lazy.
  • 3
    Well, this command can be run only at project start, and yes, you have a working auth, but still some modification to do to obtain a perfect one.
    With laravel i prefer doing manual auth, still using auth method tho
  • 3
    I love Laravel!
  • 4
    @ElaineG I really need to learn it 😅
  • 1
    @danharrin it’s just that I write loads of libraries myself and I couldn’t find a way of including those very easily. Next to that I don’t get how the routes work and how to easily integrate a custom login system as I’ve written an extensive one myself 😬
  • 1
    @danharrin custom token length, custom validity (resets) time, Auto blocking and security-email-unblocking features, brute force protection, that included? If yes that’d be awesome.

    What about the other things I named? 😬
  • 1
    @danharrin and simple requires anywhere in the code? 😅
  • 1
    @danharrin php files! Because I’ve got a shitload of libraries and stuff I always use with projects
  • 2
    You can do the same with .NET core and probably Java Spring.
  • 1
    @sSam It really depends on what you want to achieve. Spring Security is crazy huge and can be exceptionally complicated.
    You want to do basic things, sure - easy.

    Idk how .NET handles this, but I can imagine it's pretty close to Spring.
  • 0
    Thanks everyone for your comments. This is inspiring. I will try to respond to comments as I deem fit. One-by-one.
  • 1
    @Cyanide PHP is useful. What I'm trying to say is Laravel (and most of other php frameworks) makes writing php codes faster.
  • 1
    @Jakuho.

    Yes, you only need to run it at start project and it will create authentication pages (register, login & forget password) with basic fields. However, if you need complex (or extra fields) in your auth pages, then you need to go beyond the make auth command.
  • 1
    @Jakuho.

    Manual auth is necessary for complex authentication with many logical fields.
  • 5
    Great. Now your boss thinks you can make any page in a minute. Prepare for hell.
  • 0
    is this a fake comment from laravel. Their quick and simple has cost me weeks trying to relearn php.
    I can write a login system in 4 hours without laravel. 1 hour of coding and 3 hours of thinking i should be using laravel..its in my head !
  • 0
    @Babonday Nope. It's not a fake comment. If you setup your environment correctly, you will get it.

    Moreover, I don't work for laravel. I'm just a normal guy. Lol.
  • 0
    I'm waiting for that moment 😜
Add Comment