diff --git a/src/building-your-app.md b/src/building-your-app.md index 071ae59..aa12b06 100644 --- a/src/building-your-app.md +++ b/src/building-your-app.md @@ -62,10 +62,10 @@ $request->session()->flash('flash.bannerStyle', 'success'); return redirect('/'); ``` -You may also instruct Jetstream to display the banner by invoking the `banner` or `dangerBanner` methods on a redirect response instance: +You may also instruct Jetstream to display the banner by invoking the `banner`, `warningBanner`, or `dangerBanner` methods on a redirect response instance: ```php return redirect()->route('subscriptions')->banner('Subscription created successfully.'); - +return redirect()->route('subscriptions')->warningBanner('Subscription pending approval.'); return redirect()->route('subscriptions')->dangerBanner('Subscription cancellation failed.'); ``` diff --git a/src/stacks/livewire.md b/src/stacks/livewire.md index c38da4b..b9f798c 100644 --- a/src/stacks/livewire.md +++ b/src/stacks/livewire.md @@ -82,10 +82,10 @@ class ExampleComponent extends Component } ``` -To display a message to the user, invoke the `banner` or `dangerBanner` methods within a Livewire component method: +To display a message to the user, invoke the `banner`, `warningBanner`, or `dangerBanner` methods within a Livewire component method: ```php $this->banner('Invoice paid.'); - +$this->warningBanner('Payment pending approval.'); $this->dangerBanner('Payment failed.'); ```