56
dgaf21
9y

I just began using Laravel and I have to say that I love it.

Comments
  • 12
    I can see the inconsistencies in spaces right now
  • 1
    I'm using Lumen (light weight laravel) for a project because, they said, it's more fast.
    Will convert to laravel to see it :)
  • 2
    Welcome to the team! I would suggest using arrays for validation and tossing it as parameters into the validation method. Looks a bit cleaner that way.
  • 1
    Check the only method on request class and fill on eloquent model ;)
  • 2
    I would suggest using "fill()" instead of assiging the request to each property...

    First enable the $fillable with the fillable fields.
  • 3
    Nice colourscheme
  • 1
    Thanks for the suggestions guys!
  • 0
    ...and I'll replace "if" with many nested "unless". Get what I'm saying? If your app works, leave it alone.
  • 2
    Laravel is awesome. You're gonna have lots of fun.
  • 1
    @sylar I think I understand what you suggesting but can you explain with a code example ?
  • 3
    Welcome to the club!
  • 1
    @Skipp form requests are best imo :)
  • 2
    Now a Laracasts sub and you are set. Welcome to the club!
  • 3
    @ckoulatsi Laracasts subscription from day 1 :)
  • 1
    @rallport true, but even form requests use arrays for validation checks and messages you want to put out.

    If i need a simple check, i just make a validation method ontop of the controller, call it before saving or updating the model by just sending the request into it.
  • 1
    @Skipp for requests are way more powerful. For the low amount of effort they require to create I always use them.
  • 1
    Why laravel

    I think Yii2 is better!!!!
  • 1
    Laravel really takes the pain away from php..
  • 0
    This should be their slogan. @klusivek
  • 1
    @klusivek It just scares me. Spent hours on tuts etc . Everything hidden and new syntax etc. Love php,,just cant see where the pain ends and the 'simple' starts with laravel. ( iam not a commercial dev though so that might be it )
  • 0
    Save yourself the pain — every hour learning Laravel is one you'll spend later unlearning its anti-patterns. It’s the worst framework I’ve used: built to help you ship fast today by screwing you tomorrow. Magic everywhere, poor architecture, and good luck debugging anything once you stray from the "happy path."

    Laravel devs love to scream about "DX" (Developer Experience), but outside that echo chamber, no one serious builds backend systems around vibes and sugar. Real DX is maintainability, testability, and code that doesn’t collapse under its own magic.

    Laravel makes you feel productive while pushing you into tech debt disguised as simplicity.

    Do yourself a favor:

    Learn Core PHP, then move to Symfony. It’s harder at first, but it won’t trick you into thinking convenience = quality.
Add Comment