How can i get the string after call this DB function in laravel?
DB::select(DB::raw('select uuid_short()'))
How can i get the string after call this DB function in laravel?
DB::select(DB::raw('select uuid_short()'))
Shorter way could be;
DB::selectOne(DB::raw('select uuid_short() as uuid'))->uuid
Other one;
DB::select(DB::raw('select uuid_short() as uuid'))[0]->uuid