I am implementing livewire in a blade view, the schema is as follows:
view blade
@extends('seccion-principal')
@section('content')
{{$propiedad->id}}
Dentro de la vista uso el componente de livewire
@livewire('componente')
@endsection
I want to pass the component the id. Something like that:
@livewire('componente', $propiedad->id)
And I see that it is not possible but I also do not find how something like this can be done.
The error :
Argument 1 passed to Livewire\LivewireManager::resolveClassMethodDependencies() must be of the type array, integer given, called in
Does anyone know if there is a way to do this?
Depending on the error you get, you should pass it an array as an argument. You should try it this way, as the documentation says :