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.
Example:
<?php
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');
dd($e1);
}
}
OUTPUT:
// <html>foo</html> |
I hope this example helps you