73
saliu74
6d

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?
  • 10
    Or is it Laravel that is useful?
  • 5
    @Cyanide Laravel is great like that. It makes PHP up-to-speed with Node, Python and Ruby as a language for the modern web.
  • 5
    I really need to try it.
    I am too lazy.
  • 1
    @PrivateGER it's really good.
  • 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 😅
  • 2
    @linuxxx you won't look back, honest 😄
  • 2
    @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 😬
  • 0
    @linuxxx ngl you have probably worked very hard to develop those libraries, but Laravel probably already ships with some of their equivalents. The login system is included and everything.
  • 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? 😬
  • 2
    @linuxxx although that functionality doesn't come default, there are ways to overwrite methods in the authentication class to customise the processes like you have mentioned.
  • 1
    @danharrin and simple requires anywhere in the code? 😅
  • 0
    @linuxxx requiring what exactly?
  • 0
    @danharrin php files! Because I’ve got a shitload of libraries and stuff I always use with projects
  • 0
    @linuxxx I meant examples. Should it just be a case of "use"ing the library and then referencing a method in that when you require its use?
  • 1
    You can do the same with .NET core and probably Java Spring.
  • 0
    @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.
Your Job Suck?
Get a Better Job
Add Comment