I didn\'t deal with render method yet !! is it for blade template ? I have to pass dynamic data in blade.php file dynamically.
You can get php blade file with passing dynamic value in a string form
Like this
Blade
Controller
$html = view('User::html-file',['url'=>'https://stackoverflow.com'])->render();
O/P
\r\n