Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
pneves3328yI'm using Lumen (light weight laravel) for a project because, they said, it's more fast.
Will convert to laravel to see it :) -
Skipp23468yWelcome 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.
-
fredrf15248yI would suggest using "fill()" instead of assiging the request to each property...
First enable the $fillable with the fillable fields. -
sylar24078y...and I'll replace "if" with many nested "unless". Get what I'm saying? If your app works, leave it alone.
-
dgaf212668y@sylar I think I understand what you suggesting but can you explain with a code example ?
-
Skipp23468y@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. -
ultrono23588y@Skipp for requests are way more powerful. For the low amount of effort they require to create I always use them.
-
Babonday06y@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 )
Related Rants
I just began using Laravel and I have to say that I love it.
undefined
php
laravel