Answers for "get basename without extension Laravel"

PHP
0

get basename without extension Laravel

use Illuminate\Support\Str;

$string = Str::of('/foo/bar/baz.jpg')->basename('.jpg');

// 'baz'
Posted by: Guest on September-20-2021

Code answers related to "get basename without extension Laravel"

Browse Popular Code Answers by Language