Skip to main content

New answers tagged

2 votes

My implementation of repository pattern in Laravel 5.6

The upsert() method is quite long. There are many lines dedicated to assigning attributes on the Company. Perhaps by now you've learned about Mass assignment but if ...
Sᴀᴍ Onᴇᴌᴀ's user avatar
1 vote

Login Controller follow-up

Your questions Can this class can be refactored to be more efficient? As I explained in this review one could create a Form request class and move much of the validation logic there. That would ...
Sᴀᴍ Onᴇᴌᴀ's user avatar
3 votes

A cleaner way to track model changes

ISO ... '01/07/2019' ... Well known tech authority Randall Munroe advocates writing that as '2019-07-01'. Or perhaps ...
J_H's user avatar
  • 32.5k

Top 50 recent answers are included