DEV Community

Discussion on: Laravel 8 - advanced CRUD (Livewire and Tailwind)

Collapse
 
schrijvers123 profile image
Arjen Schrijvers

Nice tutorial, two issues:

  1. Delete is not working. When clicking nothing is happening.
  2. Adding a new company shows the model, woth two fields: #No and #company. Filling in the #No field results in an error: Property [$no] not found on component: [companies]. What is the meaning of this field?
Collapse
 
dariusdauskurdis profile image
Darius Dauskurdis

And about deleting problem.
Your javascript and style code has to be between tags:
@push('scripts') and @endpush
@push('styles') ... @endpush
Please check my previous tutorial:
dev.to/dariusdauskurdis/laravel-8-...

Collapse
 
dariusdauskurdis profile image
Darius Dauskurdis

Thank you for your comment. I wanted to make this CRUD smaller as possible, with less fields. This field "NO" is not necessary, I forgot to remove from my example.