Here we will see how to use laravel str e() function example. We will show example of e function in laravel. The Str::e method to determines if a given string is 7 bit ASCII.



namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Http\Controllers\FileController;
use Illuminate\Support\Str;

class HomeController extends Controller
    * Show the application dashboard.
    * @return \Illuminate\Contracts\Support\Renderable
    public function index()
        $e1 = Str::e('foo');


// &lt;html&gt;foo&lt;/html&gt;

I hope this example helps you