how to send varibale form package to view in laravel code example Example: laravel load view in variable $html = view('users.edit', compact('user'))->render();