56
dgaf21
8y

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
  • 0
    @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 )
Add Comment