Skip to content

[3.x] Convert Profile Photo URL attribute to newer syntax #1237

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
Feb 1, 2023
Merged

[3.x] Convert Profile Photo URL attribute to newer syntax #1237

merged 3 commits into from
Feb 1, 2023

Conversation

jrd-lewis
Copy link
Contributor

This will convert the profile photo attribute in HasProfilePhoto.php to the newer Attribute syntax from Laravel 9. While the function name reads cleaner, the only tradeoff is that it does add a few lines to the file.

This shouldn't be a breaking change since the attribute will still be accessible as profile_photo_url to both Livewire and Inertia. Also, the composer.json on the 2.x branch points to Laravel 9 and 10; so, it won't affect anyone using Jetstream with Laravel 8.

@taylorotwell taylorotwell changed the base branch from 2.x to master February 1, 2023 02:56
@taylorotwell taylorotwell merged commit a365b6b into laravel:master Feb 1, 2023
@jrd-lewis jrd-lewis deleted the eloquent-attribute-photo branch February 1, 2023 03:44
@driesvints driesvints changed the title [2.x] Convert Profile Photo URL attribute to newer syntax [3.x] Convert Profile Photo URL attribute to newer syntax Feb 1, 2023
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.

None yet

3 participants