how to pass paramaters to components in laravel 8 code example Example: laravel load view in variable $html = view('users.edit', compact('user'))->render();