Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[12.x] AddsEagerLoad attribute andinitializeOnQueue hook#55590

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
timacdonald wants to merge19 commits intolaravel:12.x
base:12.x
Choose a base branch
Loading
fromtimacdonald:with-relations

Conversation

timacdonald
Copy link
Member

No description provided.

@github-actionsGitHub Actions
Copy link

Thanks for submitting a PR!

Note that draft PR's are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface.

Pull requests that are abandoned in draft may be closed due to inactivity.

@timacdonaldtimacdonald changed the title[12.x] Add WithRelations attribute[12.x] AddWithRelations attributeApr 29, 2025
@AndrewMast
Copy link
Contributor

I'm sure you're already on it, but the class name is stillWithoutRelations.

@timacdonaldtimacdonald changed the title[12.x] AddWithRelations attribute[12.x] AddLoadRelations attributeApr 29, 2025
@timacdonaldtimacdonald changed the title[12.x] AddLoadRelations attribute[12.x]LoadRelations and initilizer hooks on on the queueApr 30, 2025
@timacdonaldtimacdonald changed the title[12.x]LoadRelations and initilizer hooks on on the queue[12.x] AddsEagerLoad attribute andinitializeOnQueue hookApr 30, 2025
}
}

if (in_array(Queueable::class, class_uses_recursive($this)) && method_exists($this, 'initializeOnQueue')) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I feel like swapping the order would be more optimal, but probably not by much:

if (method_exists($this,'initializeOnQueue') &&in_array(Queueable::class,class_uses_recursive($this))) {

Probably would only be important if this was called a lot.

rodrigopedra and derian-all-win-software reacted with thumbs up emoji
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@rodrigopedrarodrigopedrarodrigopedra left review comments

@AndrewMastAndrewMastAndrewMast left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@timacdonald@AndrewMast@rodrigopedra

[8]ページ先頭

©2009-2025 Movatter.jp