Reputation: 185
I'm useing Laravel's Blade to show data {{$value->blanko}}
and the result is CA123456789.
how to show only CA from the data in the view?
Upvotes: 0
Views: 106
Reputation: 154
Please use function like as example $result = substr($myStr, 0, 2);
in controller or use laravel function str_limit
Upvotes: 1