Skip to content

[5.7] Align Mailable dynamic parameter case to View (camel).#24232

Merged
taylorotwell merged 1 commit intolaravel:masterfrom
jrseliga:5.7-mailable-dynamic-with-camel
May 17, 2018
Merged

[5.7] Align Mailable dynamic parameter case to View (camel).#24232
taylorotwell merged 1 commit intolaravel:masterfrom
jrseliga:5.7-mailable-dynamic-with-camel

Conversation

@jrseliga
Copy link
Copy Markdown
Contributor

@jrseliga jrseliga commented May 16, 2018

Currently dynamic with parameters on Illuminate\Mail\Mailable are snake cased, however Illuminate\View\View was updated to camel case in 5.5.

#18083: [5.5] Camel case variables that get shared with a view

Breaking change, but for consistency, Mailable would now also use camel case.

@jrseliga jrseliga changed the title Align Mailable dynamic parameter case to View (camel). [5.7] Align Mailable dynamic parameter case to View (camel). May 16, 2018
@taylorotwell taylorotwell merged commit f29b3cd into laravel:master May 17, 2018
@@ -109,7 +109,7 @@ public function testMailableBuildsViewData()

$expected = [
'first_name' => 'Taylor',
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why is lastName in CamelCase but first_name isn't?

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.

2 participants