Use array_merge to merge user-supplied options with default options
Use array_merge to merge user-supplied options with default options

Use json_encode to set the options instead of manually writing a
JavaScript object

oriceon/toastr-5-laravel,kamaln7/toastr