Last active
March 30, 2020 08:16
-
-
Save abishekrsrikaanth/54d4a0db8affa9fa4ed2bb4d8c8b55d7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| Textarea::make('Description')->displayUsing(function($description) { | |
| return Str::substr($description, 0, 100) . '....'; | |
| }), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Small thing, but maybe https://laravel.com/docs/5.8/helpers#method-str-limit will fit your needs better. Nice article