Example Use | Making Sure Strings Start With a Given Value in Laravel - Laravel 5.5 String Helper Method: start
1 use Illuminate \ Support \ Str ; 2 3 // /home/path 4 echo Str :: start ( ' /home/path/ ' ' / ' ) ; 5 6 // home/path 7 echo Str :: start ( ' home/path/ ' , ' / ' ) ; 8 9 // Generate absolute URLs from relative paths. 10 $ domain = '...