Last active
March 23, 2020 07:15
-
-
Save abishekrsrikaanth/24ce480e0ef34fa218e99489cbab5661 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 | |
public function fields(Request $request) | |
{ | |
return [ | |
Textarea::make('Description') | |
->displayUsing(function($description) { | |
return Str::substr($description, 0, 100) . '....'; | |
})->onlyOnIndex(), | |
Textarea::make('Description')->hideFromIndex(), | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment