Support the ongoing development of Laravel.io →

ricardocanelas

Joined 27 Jun 2014

Statistics

Threads 3
Replies 3
Solutions 2
Articles 0
posted 8 years ago

Lang::choice is wrong

lang/en/messages.php 'apples' => 'There is one apple|There are many apples', So.. i do {{ Lang::...

Likes Replies
posted 8 years ago

How do I replace the words of a text?

Hello.. How do I replace the words of a text? Example: $str = 'Hello :name ..Do you like :drink?'; $...

Likes Replies
Solved

One file for Create and Edit

Hi, How do I have only one file to be used in create.blade.php and edit.blade.php?

Likes Replies
Solved
replied 8 years ago

Lang::choice is wrong

Yes.. I tried ... and yet {{ Lang::choice("There is one apple|There are many apples", 7) }...

0 Likes
replied 8 years ago

How do I replace the words of a text?

Good.. But it has to be dynamic .. So.. My solution is.. function vnsprintf( $format, array $data) {...

0 Likes
Solved
replied 8 years ago

One file for Create and Edit

Thanks TorchSK. I found a solution on this link: http://forumsarchive.laravel.io/viewtopic.php?id=16...

0 Likes
Solved

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

Your logo here?

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

© 2022 Laravel.io - All rights reserved.