Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ashp's avatar
Level 1

Laravel helper functions e.g: getClientOriginalName()

Hi,

I noticed that there are a load of 'helper functions' (I am not sure if this is the correct term) or methods relating to files, such as; getClientOrigianlName(); getClientOriginalExtension(); etc

I am sure there are many others that can be used across the board (not just relating to files).

I have just been looking through the docs and could not see any reference to this. I was just wondering if someone could point me in the right direction?

I am trying to find out where these functions originate from and if there are any definitive lists of helpers etc as they may be useful for me in the future..

thanks

0 likes
9 replies
ashp's avatar
Level 1

@st8113 I checked PHP.net docs but could not see getClientOriginalName() in there?

I have already seen the helpers docs that you linked, but it is not listed there either.

@jlrdw which API - you got a link? thanks

ashp's avatar
Level 1

@jlrdw thanks for the link, but that function is not showing up there either (unless I don't get it?)

jlrdw's avatar

It's right in the api see my updated answer

2 likes
ashp's avatar
Level 1

ok cool, I see it in the symfony API - thanks for that.

So out of curiosity, is it detailed anywhere which of the Symfony components are carried over to Laravel?

i.e. can I use anything in the Laravel API and the Symfony API?

thanks

ashp's avatar
Level 1

@jlrdw ok thanks, I see that now - must have missed it first time around.

1 like

Please or to participate in this conversation.