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

Error on @unless(auth()->user()->hasVerifiedEmail()) #686

Closed
sanskar-mk2 opened this issue Aug 11, 2022 · 1 comment · Fixed by #688
Closed

Error on @unless(auth()->user()->hasVerifiedEmail()) #686

sanskar-mk2 opened this issue Aug 11, 2022 · 1 comment · Fixed by #688
Assignees

Comments

@sanskar-mk2
Copy link

Steps to Reproduce

<x-app-layout>
    <x-slot name="header">
        <h2 class="font-semibold text-xl text-gray-800 leading-tight">
            {{ __('Dashboard') }}
        </h2>
    </x-slot>

    <div class="py-12">
        <div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
            <div class="bg-white overflow-hidden shadow-sm sm:rounded-lg">
                <div class="p-6 bg-white border-b border-gray-200">
                    <p>You're logged in!</p>
                    @unless(auth()->user()->hasVerifiedEmail())
                        <p>Please check and verify your email to access the system</p>
                    @endunless
                </div>
            </div>
        </div>
    </div>
</x-app-layout>

Error

message: "Parse Error : syntax error, unexpected ';' on line 1\n" +       
    '> 1 | <?php echo auth()->user()->hasVerifiedEmail(), ?>\n' +
    '    |                                               ^',
  error: SyntaxError: Parse Error : syntax error, unexpected ';' on line 1  
  > 1 | <?php echo auth()->user()->hasVerifiedEmail(), ?>
      |                                               ^
      at $.raiseError (E:\tall\ndis\node_modules\@prettier\plugin-php\standalone.js:4:101152)
      at $.error (E:\tall\ndis\node_modules\@prettier\plugin-php\standalone.js:4:101792)
@shufo
Copy link
Owner

shufo commented Aug 13, 2022

Thanks @sanskar-mk2
Fixed at https://github.com/shufo/blade-formatter/releases/tag/v1.27.4

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 a pull request may close this issue.

2 participants