You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have updated the component from version 1 to version 2 and get this error. I dont understend what is $queryStringAlias. This is what my code looks like
`<?php
namespace App\Http\Livewire\Frontend;
use App\Domains\Auth\Models\User;
use App\Models\Business;
use Illuminate\Database\Eloquent\Builder;
use Rappasoft\LaravelLivewireTables\DataTableComponent;
use Rappasoft\LaravelLivewireTables\Views\Column;
/**
Class MyBusinessesTable.
*/
class MyBusinessesTable extends DataTableComponent
{
public ?string $defaultSortColumn = 'created_at';
public string $status;
public bool $showSearch = false;
public function configure(): void
{
}
public function mount(string $status = 'active'): void
{
$this->status = $status;
}
public function builder(): Builder
{
/** @var User $user */
$user = auth()->user();
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have updated the component from version 1 to version 2 and get this error. I dont understend what is $queryStringAlias. This is what my code looks like
`<?php
namespace App\Http\Livewire\Frontend;
use App\Domains\Auth\Models\User;
use App\Models\Business;
use Illuminate\Database\Eloquent\Builder;
use Rappasoft\LaravelLivewireTables\DataTableComponent;
use Rappasoft\LaravelLivewireTables\Views\Column;
/**
Class MyBusinessesTable.
*/
class MyBusinessesTable extends DataTableComponent
{
public ?string $defaultSortColumn = 'created_at';
public string $status;
public bool $showSearch = false;
public function configure(): void
{
}
public function mount(string $status = 'active'): void
{
$this->status = $status;
}
public function builder(): Builder
{
/** @var User $user */
$user = auth()->user();
}
public function columns(): array
{
return [
Column::make(('Name'), 'name_option_1'),
Column::make(('State'), 'state'),
Column::make(('Submitted'), 'created_at'),
Column::make(('Status'), 'status'),
Column::make(('Next Renewal'), 'next_renewal'),
Column::make(('Actions')),
];
}
public function rowView(): string
{
return 'frontend.business.includes.row';
}
}`
Beta Was this translation helpful? Give feedback.
All reactions