Have you already started on GraphQL? Seems like it's getting more and more popular, a few links related to Laravel are in the list. Also, a few articles on how to organize code better, or how to use Eloquent Query Builder.
All in all, today we have 20+ links to interesting articles, I hope you find something useful!
How to Save User's Last Login Time and IP Address
laraveldaily.com
Quick tip of the day. Default Laravel Auth comes with User table and model, but without logging capability, so we need to build it ourselves. Fortunately, it’s very easy, I will show you one method. Let’s say that we want to save user’s last login time and IP address in the same users table.
GraphQL: 3 Years in, and lessons learned
hackernoon.com
Back in late 2016 I wrote an article called GraphQL: Tips after a year in production. Since then, GraphQL started offering native subscriptions, Relay got so good you could replace Redux with Relay Modern, and I learned a few neat tricks along the way. I’ve also made a bunch of mistakes.
HTTP Cache Packages for Laravel
laravel-news.com
We wrote about Joseph Silber’s Laravel page cache package, which provides static HTTP response caching for Laravel. There are other open-source packages for caching HTTP responses in Laravel so we thought we’d gather a list of HTTP cache packages you should check out.
Scheduling Tasks in Laravel
medium.com
The last couple of months, I have been working on a PIM tool that required lots of scheduled jobs and commands. As you might imagine my app/Console/Kernel.php file ended up looking a bit messy and difficult to maintain. Something similar to this:
How Laravel Broadcasting Works
code.tutsplus.com
Today, we are going to explore the concept of broadcasting in the Laravel web framework. It allows you to send notifications to the client side when something happens on the server side. In this article, we are going to use the third-party Pusher library to send notifications to the client side.
Laravel Cashier: a helping hand
timacdonald.me
If you are creating a Laravel app with subscriptions via Stripe - Laravel Cashier might just be the helping hand you were looking for. Laravel Cashier is an “expressive, fluent interface to Stripe’s subscription billing services”.
GraphQL in Laravel done right
medium.com
Recently a new package has revolutionised the creation of a GraphQL API in Laravel. This package makes it so simple and easy to setup a GraphQL server, that it gives you the same feeling you had first time you worked with Laravel, “What magic is this!”. This package is of course Lighthouse.
★ Automatically close stale issues and pull requests
murze.be
At Spatie we have over 180 public repositories. Some of our packages have become quite popular. We're very grateful that many of our users open up issues and PRs to ask questions, notify us of problems and try to solve those problems, ... Most of these issues and PRs are handled by our team.
Dependecy injection for beginners
www.stitcher.io
You're in the car business, your job is to make cars on-demand. The object-oriented programmer in you says: "no problem, I'll make a blueprint that I can use to make as much cars as I want!". For this car to work, it needs an engine and wheels.
sander3/laravel-gdpr
github.com
This package helps you to be compliant with the GDPR article 20. By default, the entire toArray form of the App\User model will be made available for download. If you would like to customize the downloadable data, you may override the toPortableArray() method on the model:
Decoupling Laravel Applications
medium.com
I am not gonna share anything groundbreaking. These are notes for dummies or, better, forgetful dummies who need to retrace step by step the work in order to continue between learning sessions. I have been working with Laravel for quite some time and I think I have become somewhat proficient.
Laravel 5 - MongoDB CRUD Tutorial
itsolutionstuff.com
today, most of the developer choose mongodb as database, because it takes less memory to store data and the very simple way we can use it. Laravel is also more popular in today's market. So in this tutorial, I would like to share with you Laravel 5.6 with MongoDB CRUD operation.
Laravel API Resource + Vue.js Pagination (Part One)
florianwartner.me
Laravel provides since version 5.5 own api-transformers to transform your eloquent models into JSON. This could be very handy in a lot of situations when you build API´s using Laravel. But how can you consume and paginate the results of your api within your application using Vue.
Organizing your Laravel models
medium.com
By default models are located within the App namespace, which can become quite overwhelming if you are working on a large application. So I decided to organize my models within the App\Models namespace instead.
That's it for this week, see you next Thursday! Povilas Korop LaravelDaily Team
|