PHPnews.io

Using view models

Written by murze.be / Original link on Dec. 13, 2019

Brent explains what view models are and how you can use them. We use view models in almost every project at Spatie.In essence, view models are simple classes that take some data, and transform it into something usable for the view. In this chapter I'll show you the basic principles of the pattern, …





No, disabling a button is not app logic

Written by murze.be / Original link on Dec. 13, 2019

David Khourshid explains how you can use state machines to make your logic more resilient.Disabling a button is not logic. Rather, it is a sign that logic is fragile and bug-prone. In my opinion, disabling a button should only be a visual cue to the user that clicking the button will have no effect…




Weekly Update 169

Written by Troy Hunt / Original link on Dec. 13, 2019

I recorded this right before heading out for my final conference talk of the year at YOW! Melbourne where I was due to do the closing keynote of the event. That's now done, questions answered and beers drunk and I left the event feeling great. One of the things I get the most pleasure out of at con…


Uses

Written by Wes Bos / Original link on Dec. 12, 2019

Everyday I get a few emails asking about the specifics of some piece of software or hardware I use.I change up things fairly often, so this page will serve as a living document and a place to point curious developers to when I get asked.If there is something missing leave a comment below or ask in …


Laravel 6.7.0 Released

Written by Laravel News / Original link on Dec. 12, 2019

The Laravel team released a minor version v6.7.0 this week, with the latest features, changes, and fixes for 6.x. The post Laravel 6.7.0 Released appeared first on Laravel News. Join the Laravel Newsletter to get Laravel articles like this directly in …