laravel-notify icon indicating copy to clipboard operation
laravel-notify copied to clipboard

Doesn't work with the Laravel 8 and Livewire

Open martio opened this issue 5 years ago • 1 comments

Hi,

When I use a Livewire component in the view, it doesn't work. When I remove a Livewire component, a notification appears on the website.

<!doctype html>
<html lang="en">
<head>
    <!-- Scripts -->
    <script src="{{ mix('js/app.js') }}" defer></script>

    <!-- Styles -->
    <link href="{{ mix('css/app.css') }}" rel="stylesheet">

    @livewireStyles
    @notifyCss
</head>
<body>
    <div>
        @yield('content')
    </div>

    @include('notify::messages')

    @livewireScripts
    @notifyJs
    @stack('scripts')
</body>
</html>
@extends('layouts.app')

@livewire('season.show')
@livewire('counter')

martio avatar Oct 27 '20 10:10 martio

total newbie here.. but shouldn't the @livewire component calls be between @livewireStyles and @livewireScripts, at the very least between body tags?

unohuim avatar Nov 03 '20 17:11 unohuim