Hey guys, Usual Thursday's newsletter, this time there's one piece of content from our team - short video of a demo-project, showcasing multi-tenancy and currency formatting, see below. Also, a few minor Laravel 5.6.x versions and useful packages from community. Enjoy!
How to get the count of a subquery in Laravel.
oliverlundquist.com
So this time I had this rather complex MySQL query that I was trying to rewrite into beautiful fluent Eloquent ORM syntax. The query that I tried to write in Eloquent was a query wrapping another query into a subquery by putting it in a from clause to get the count from it.
Navigating a New Laravel Codebase
laravel-news.com
Getting started in a new codebase can be very overwhelming, even more so if you are new to programming. So where do you start? Where are the places to look to learn the most about a codebase? Let’s take a look at few common areas for Laravel.
Automatic Testing Laravel Project use Codeception
medium.com
As we know that Codeception is a framework that helps our performance in performing automated testing on PHP-based applications. As the statement on the website page, Codeception collects and shares best practices and solutions for testing PHP web applications.
Negative CRUD Unit Testing in Laravel 5
medium.com
As part II of the CRUD Unit Testing in Laravel 5, we continue with negative testing. What we have in the previous article is testing the positive side; say it CAN create, update, show or delete the carousel we are trying to do.
Deploying Your Laravel Application
pusher.com
In this talk, we are going to look at deployment strategies and techniques available to you once you are done creating your beautiful application. Neo: I'm gonna go straight into what I'm gonna be talking about today. I'm talking about deploying your Laravel application.
Guzzle Advanced Throttling Middleware and Laravel Package
laravel-news.com
Full stack developer Timo Prüße has created a Guzzle middleware that helps you set up advanced API request throttling within your Guzzle handler stack. A Guzzle middleware that can throttle requests according to (multiple) defined rules. It is also possible to define a caching strategy, e.g.
Is it bad practice to use orderBy() in a scope?
www.reddit.com
What are your thoughts on using the orderBy() or latest() function in a scope? For example, if we wanted to order Comments in descending order by default. At my company, we have a scope which contains logic surrounding what comments are returned based on the authenticated user.
That's it for this week, see you next Thursday! Povilas Korop LaravelDaily Team
|