samedi 28 avril 2018

How to truncate variable in template Laravel 5.6?

i need your help to know how to truncate my variable in my template.

this is my code :

<p class="card-text"></p>

i would truncate this variable $new['content'] at 150 characters with '...' at end.

Can you help me please ?

I work on Laravel 5.6

Thanks all ^^



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2r5zNnm
via IFTTT

Aucun commentaire:

Enregistrer un commentaire