I don't know postgres won't create index automatically in foreign key, and in mysql, foreign key will create index by default. 😳
www.postgresql.org/docs/current/ddl-constraints.html
All my Livewire components have the similar structure, how about yours 🤩
@assets
@vite('resources/ts/example.ts')
@endassets
@script
<script>
Alpine.data('example', () => ({
message: 'hello',
init() {
//
}
});
</script>
@endscript
<div x-data="example">
<h1 x-text="message"></h1>
</div>