6 digit terakhir string laravel
$newstring = substr($dynamicstring, -7);
Crazy Caterpillar
$newstring = substr($dynamicstring, -7);