Skip to content

[11.x] Component name guessing with prefix #53183

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 16, 2024
Merged

Conversation

royduin
Copy link
Contributor

@royduin royduin commented Oct 16, 2024

Followup on: #52669, the issue is described here: #52669 (comment)

Comment on lines 385 to 387
$lastViewPart = Str::afterLast(Str::afterLast($componentName, '.'), ':');

if ($viewFactory->exists($view = $this->guessViewName($componentName, $directory).'.'.$lastViewPart)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

can you keep this inline? I know it's lengthy but doesn't seem worth it to have the temporary variable.

@taylorotwell
Copy link
Member

Do we need a test?

@taylorotwell taylorotwell merged commit a6b0541 into laravel:11.x Oct 16, 2024
32 checks passed
@royduin royduin deleted the patch-2 branch November 11, 2024 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants