In this tutorial we’re going to learn how to remove / from last value in laravel
Solution :-
$getting_url = rtrim($input['url'], '/');
Log::info('url me kya aa rha hai'.$getting_url);
Output:-
For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!
In this tutorial we’re going to learn how to remove / from last value in laravel
Solution :-
$getting_url = rtrim($input['url'], '/');
Log::info('url me kya aa rha hai'.$getting_url);
Output:-