Skip to content

u/KnifeFed

In this archive from Apr 2012 to Oct 2026

3
posts
199
comments
0
media
1.5k
score

Top posts

Localization: replacement within @foreach() ?

I have an array in a lang file that looks like so: 'stuff' => [ 'Replace this :value', 'and this :value', 'as well as this :value', ] I've tried the following in my template and it doesn't work. It outputs the strings without replacement: <ol> @foreach(trans('messages.stuff') as $thing) <li>{{ trans...

1 points4 comments
Open on Reddit

Top comments

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.