Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow banner.blade.php to be a link #1383

Closed
wants to merge 1 commit into from
Closed

Conversation

ziming
Copy link

@ziming ziming commented Sep 26, 2023

Example use case, we want to encourage email verification but didn't want to strictly enforce it

@if(auth()->user()->hasVerifiedEmail() === false)
    <x-banner style="info" message="We encourage you to verify your email for bonus points, click here!" href="{{ route('verification.notice') }}" target="_blank" />
@endif

There are many other potential use cases as well for allowing the banner to be a link

You can still click on the x button to close the banner like the past if you want

@taylorotwell
Copy link
Member

Hey there - this belongs to your application so you can change it however you want in your own application.

@ziming ziming deleted the patch-1 branch September 26, 2023 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants