90
saliu74
129d

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
  • 13
    You mean to say php is useful?
  • 13
    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.
  • 0
    Great. Now your boss thinks you can make any page in a minute. Prepare for hell.
Your Job Suck?
Get a Better Job
Add Comment