Hey guys, This week's list of links is full of everything: quick tips, useful packages and tools, and Taylor's opinion - I highly recommend reading his interview, you will understand Laravel's philosophy better.
Have a good read!
Articles from Laravel Daily blog
Eloquent: How to Order Results by Mutator Attribute?
laraveldaily.com
Recently I’ve encountered a situation and want to share a quick solution with you guys. Laravel has quite an awesome feature of Mutators – you can define extra fields in your Eloquent models that are dynamically calculated. But orderBy doesn’t work with them, so what can we do?
Laravel-related articles from all the web
Pre-Render A Vue.js App (With Node Or Laravel)
medium.com
Server-side rendering is all the rage right now. But it’s not without its downsides. Pre-rendering is an alternative approach that may even be better in some circumstances. In this article we’ll explore how pre-rendering works with Vue.js and look at two examples; one with a Node.
Running PHPUnit Tests in PHPStorm
medium.com
All the configuration in this micro-tut will happen in the Run/Debug Configurations Dialog. In your toolbar menu (illustrated below) click on run then Edit Configurations. Once the dialog opens you want to click the green plus icon to create a project specific configuration.
Laravel v5.4.24 Is Now Released
laravel-news.com
Laravel 5.4.24 is now released and available for all. This release adds support for magic controller methods, a Request::routeIs() method and more. Check the full change log below and run composer update to get the latest version.
First steps with Laravel and Continuous Delivery
hackernoon.com
It appears that Laravel is nowadays one of the most frequently used PHP frameworks. The numbers confirm that: over 65k followers on Twitter, 30k stars and 10k forks on GitHub. With this article you will learn how to create a Continuous Delivery pipeline for an application built thanks to Laravel.
Moving from Laragon 2 to Laragon 3.0 : My Telltale
medium.com
So, Laragon 3.0 was released, it has all the services in 64-bit by default and other shinny new changes. The news was on and oh yea! I want one. In a jiffy, I downloaded the distributions for wamp, nodejs and java. I did not read the release notes or any migration guide.
Repository pattern with Laravel
dev.codetrick.net
Last time, I wrote an article to get your feet wet on Test Driven Development (TDD). You may refer to this post: Simple TDD in Laravel with 11 steps Today, let us refactor what we have accomplished on that post to make it more manageable. We will use the REPOSITORY pattern.
Passing data from Laravel to Vue
medium.com
In order to progressively enhance my Laravel templates I have been using Vue.js. One problem that I was grappling with is that one of my components was actually behaving more like an application and needs a load of startup data.
Simple TDD in Laravel with 11 steps
medium.com
Most web developers cringe when they hear of TDD (test driven development). Well, I did when I was asked to program with TDD first. When you are starting off, it feels overwhelming. If you resist it, it will make it harder for you to learn it. So what should you do? Embrace it.
Automated Browser Testing with Laravel Dusk and BrowserStack
medium.com
Laravel Dusk is a convenient helper for testing Laravel web applications. It is basically a wrapper around the Selenium SDK which provides an easy-to-use API. By default, Laravel Dusk uses ChromeDriver to run the tests within Chrome. Unfortunately, it is not sufficient to run tests in Chrome only.
Folkloreatelier/laravel-graphql
github.com
Use Facebook GraphQL with Laravel 5 or Lumen. It is based on the PHP implementation here. You can find more information about GraphQL in the GraphQL Introduction on the React blog or you can read the GraphQL specifications. This is a work in progress.
Custom Validation Rules In Laravel 5.5
medium.com
Recently, Adam Wathan showed me a fresh approach to writing custom validation rules that he was implementing in his own projects. So, Adam and I decided to pair program the feature into Laravel one morning, and I’m really happy with the results.
Presentation: PHP in 2017
dyrynda.com.au
Originally presented at the PHP Adelaide meetup in May 2017, this talk aims to serve as a very high-level overview of concepts, groups, and methodologies modern PHP developers should be considering.
DependenCI
dependenci.miguelpiedrafita.com
With DependenCI, you'll never have to worry about keeping your dependencies updated anymore. DependenCI integrates with public or private GitHub repositories for free.
Little Things I Like to Do with Git
csswizardry.com
The shortlog gives us summaries of git log; the -s flag will a suppress commit description and provide a commit count summary only, and the -n flag will sort output according to the number of commits per author instead of author alphabetic order. The issue here is the wording.
That's it for this week, see you in the next issue! Povilas Korop LaravelDaily Team
|