Support the ongoing development of Laravel.io →
Database Eloquent

New to laravel, coming from codeigniter and i'm trying to port over and clean up my project.

I have a table which contains encrypted address values eg.. Recipient, House Number, Line 1, Line 2, Town, Postcode

I can save, update and retreive this data no problem.

I've looked into event listeners but i've been getting stupidly confused.

Is it possible to, whener a address is created or updated, to collate the fields and format them into another field?

For example when the user submits the form, it should add an address into the 'full' field which conaints all the form variables.

Last updated 2 years ago.
0

have you tried to use accessors and mutators? https://laravel.com/docs/5.3/eloquent-mutators

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Jam0r85 jam0r85 Joined 5 May 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.