Hi, Im my app i have a function that i want to run on all user inputs before proceeding. Suppose it's a method that converts all dashed (-) to underline(_). Currently i run this method on every text input before insert into db.
$name = convert_dash ($name);
Is there any way to do it site-wide? like a hook or something that do this for me?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community