modified: resources/views/components/simple-home.blade.php
modified: vite.config.js
This commit is contained in:
@@ -10,7 +10,7 @@ class SimpleHome extends Component
|
||||
|
||||
public function changeMessage()
|
||||
{
|
||||
$this->message = "Livewire is working!";
|
||||
$this->message = "Livewire is working! Now hello matin gav khobi?";
|
||||
}
|
||||
|
||||
public function render()
|
||||
|
||||
@@ -1,14 +1,10 @@
|
||||
<div class="p-8">
|
||||
<h1 class="text-3xl font-bold text-blue-600">Simple Test</h1>
|
||||
|
||||
<p class="mt-4 text-lg">{{ $message }}</p>
|
||||
|
||||
<button wire:click="changeMessage"
|
||||
class="mt-4 bg-blue-500 text-white px-4 py-2 rounded">
|
||||
<button wire:click="changeMessage" class="mt-4 bg-blue-500 text-white px-4 py-2 rounded">
|
||||
Click to Test
|
||||
</button>
|
||||
|
||||
<p class="mt-6 text-gray-600">
|
||||
If this changes when clicked, Livewire works!
|
||||
amine gavvvvvvvvvvvv
|
||||
</p>
|
||||
</div>
|
||||
@@ -11,8 +11,15 @@ export default defineConfig({
|
||||
tailwindcss(),
|
||||
],
|
||||
server: {
|
||||
host: '192.168.1.21',
|
||||
port: 5173,
|
||||
strictPort: true,
|
||||
cors: true,
|
||||
watch: {
|
||||
ignored: ['**/storage/framework/views/**'],
|
||||
},
|
||||
hmr: {
|
||||
host: '192.168.1.21',
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user