How to Submit Pull Request to Laravel Package

preview_player
Показать описание
In this video, I will create a real Pull Request to a real Laravel package, optimizing one Eloquent import operation.

00:00 Intro
01:24 Fork and Clone Package
04:29 Measuring Queries
07:21 2 Ways To Optimize Import
12:00 Create Pull Request

- - - - -
Support the channel by checking out my products:

- - - - -
Other places to follow:
Рекомендации по теме
Комментарии
Автор

Thanks for the regular Laravel tips! Just thought, the upsert() method can be used instead to get multiple records updated and only new ones inserted.

ruslanvoroshchukowlookitlt
Автор

If the code column is a unique key, you can actually use upserts

meruuke
Автор

Povilas, test Laradumps packet to debug your code and queries

RavnosPKR
Автор

Why you didn't run tests yourself? are in the branch. And no statical analisys or linter?

giacomogaravaglia
Автор

Hello Povilas, i faced a problem today i have a big table users which contains a columns services as an array of service_ids i want to make a query to add a new service_id (NEW SERVICE) for all user that have a specific service_id (OLD SERVICE) after another service_id (AN OLD SERVICE). i used JSON_SEARCH to find users that have service_id as i told your users on that tables are more than 600k, it takes more than one hour and it gives http 504 error

ps: i don't want to increase the fastcgi_read_timeout more than 1h (3600s).
ps: in this project i don't use laravel, just pure php code.

any hint brother ?

Semicolon..