Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Incorrect work filters and blade view Laravel 11, Livewire 3 #1704

Open
rah-emil opened this issue Apr 24, 2024 · 3 comments
Open

[Bug]: Incorrect work filters and blade view Laravel 11, Livewire 3 #1704

rah-emil opened this issue Apr 24, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@rah-emil
Copy link

rah-emil commented Apr 24, 2024

What happened?

Just see video, please: https://drive.google.com/file/d/1_st0p4Y9mrqneEfHWiOk3KN3GK7-MZqB/view?usp=drive_link

Alpine:

       <!-- ... other code -->

        <script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/cdn.min.js"></script>
    </body>
</html>

My table component:

<?php

namespace App\Livewire\Components\Incidents;

use App\Models\Incident;
use Rappasoft\LaravelLivewireTables\DataTableComponent;
use Rappasoft\LaravelLivewireTables\Views\Column;


class IncidentsTable extends DataTableComponent
{
    protected $model = Incident::class;
    public string $tableName = 'incidents';

    public function configure(): void
    {
        $this->setPrimaryKey('id')
            ->setDefaultSort('id', 'desc')
            ->setReorderStatus(false)
            ->setColumnSelectStatus(true);
    }

    public function columns(): array
    {
        return [
            Column::make('ID', 'id'),
            Column::make('Status', 'status'),
            Column::make('Topic', 'topic'),
            Column::make('Type', 'type'),
            Column::make('Level Priority', 'priority'),
        ];
    }
}

My livewire blade:

<div>
    <livewire:components.incidents.incidents-table />
</div>

How to reproduce the bug

Please, see the video

Package Version

3.2.4

PHP Version

8.3.x

Laravel Version

11.4.0

Alpine Version

3.X.X

Theme

Tailwind 3.x

Notes

I checked all your documentation

Error Message

All errors inside the video

@rah-emil rah-emil added the bug Something isn't working label Apr 24, 2024
@rah-emil rah-emil changed the title [Bug]: Incorrect work filters and blade view [Bug]: Incorrect work filters and blade view Laravel 11, Livewire 3 Apr 24, 2024
@JustGregGithub
Copy link

Please note that the video needs to be public. No one is currently able to see the video.

@rah-emil
Copy link
Author

Please note that the video needs to be public. No one is currently able to see the video.

My bad) I did it, you can see: https://drive.google.com/file/d/1_st0p4Y9mrqneEfHWiOk3KN3GK7-MZqB/view?usp=sharing

@apydevs
Copy link

apydevs commented May 2, 2024

@rah-emil I had the same experience, This be worth a try. lucky i realised quite quickly and didn't spend to much time chasing my tail!
Stop vite services and re-run npm run build, once complete restart npm run dev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants