Relative Content

Tag Archive for laravel-livewire

How to render Title attribute dynamically in Livewire

Below is my ShowPost component and I’d like the Title attribute to be dynamic depending on the post title instead of hard coding 'Laravel Roadmap'. Passing 'title' => $post->title in the blade template it doesn’t work too. How can I make this dynamic?

POST https://admin.yanachitran.in/livewire/message/header.profile 405 (Method Not Allowed) index.js:46

enter image description here // Forward the query string for the ajax requests. fetch( `${appUrl}/livewire/message/${payload.fingerprint.name}`, { method: ‘POST’, body: JSON.stringify(payload), // This enables “cookies”. credentials: ‘same-origin’, headers: { ‘Content-Type’: ‘application/json’, ‘Accept’: ‘text/html, application/xhtml+xml’, ‘X-Livewire’: true, // set Custom Headers …(this.headers), // We’ll set this explicitly to mitigate potential interference from ad-blockers/etc. ‘Referer’: window.location.href, …(csrfToken && […]

The GET method is not supported for route livewire/message/header.profile. Supported methods: POST

curl “https://admin.yanachitran.in/livewire/message/header.profile” -X GET -H ‘accept: text/html, application/xhtml+xml’ -H ‘accept-encoding: gzip, deflate, br, zstd’ -H ‘accept-language: en-US,en;q=0.9’ -H ‘content-type: application/json’ -H ‘content-length: 1608’ -H ‘cookie: <CENSORED>’ -H ‘host: admin.yanachitran.in’ -H ‘referer: https://admin.yanachitran.in/setting/settings’ -H ‘user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36’ -H ‘sec-ch-ua: “Google Chrome”;v=”125″, “Chromium”;v=”125″, “Not.A/Brand”;v=”24″‘ -H ‘x-csrf-token: <CENSORED>’ […]

Upload file long name failed laravel livewire

Please help, I’m a newbie, And I have mini project for e-documents using laravel and livewire,
When I try to upload file that has long name then got error, also can’t catch the error.
when the file has short name is work fine

Can’t select date with Livewire 3

I cannot select the date field with Livewire 3. I am using Airdatepicker and when I select the date field, I cannot assign it to the $selected_date variable with wire:model from the input field. How can I achieve this situation?