Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ijpatricio committed Dec 25, 2023
1 parent b09707b commit a40ae56
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 1 deletion.
16 changes: 16 additions & 0 deletions app/Livewire/Toaster.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace App\Livewire;

use App\Mingle\RendersJavaScript;
use Livewire\Component;

class Toaster extends Component
{
use RendersJavaScript;

public function component(): string
{
return 'Toaster/index.js';
}
}
2 changes: 1 addition & 1 deletion resources/js/mingles/Message/Message.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ const save = () => {
</div>

</div>
<Toaster/>
<!-- <Toaster/>-->
</template>
4 changes: 4 additions & 0 deletions resources/js/mingles/Toaster/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { registerVueMingle } from '@/mingle'
import Toaster from '@/components/ui/toast/Toaster.vue'

registerVueMingle('Toaster', Toaster)
3 changes: 3 additions & 0 deletions resources/views/livewire/toaster.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div>
{{-- The best athlete wants his opponent at his best. --}}
</div>
1 change: 1 addition & 0 deletions resources/views/welcome.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@

</div>

<livewire:toaster />
@endsection

0 comments on commit a40ae56

Please sign in to comment.