← All tasks
What you'll do
Pick the correct distinction between an Eloquent accessor and a mutator.
Scenario
You want $user->full_name to combine first_name and last_name when read, and you want set password logic to hash automatically when written.
Ready to try it?
Create a free account and try "Accessors vs Mutators" free for 7 days, no card required. Earn 70 XP and track your internship progress.
Already have an account? Sign in