use Illuminate\Support\Facades\View;
Now you have to defined the template directory where you have write your html code
alert([
'title' => 'Login Form',
'html' => (string)View::make('vendor.sweetalert.template.login'),
'showCloseButton' => true,
'allowOutsideClick' =>false
]);
Now here you can see i am pointing to the views folder actual file path is resources/views/vendor/sweetalert/template/login.blade.php