How to write MySQL Query in Laravel 5 without using PHP String function?

Solution:

That’s what I would do:

 $arrayData = DB::select(DB::raw("SELECT RIGHT('abc3',1) ")): 

you can pass array of parameter to bind values:

DB::select(DB::raw("  SQL QUERY  "),$paramsArray);