Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
zofe committed Jan 14, 2025
1 parent 611b837 commit 2ee4578
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Traits/WithDataTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,17 @@ trait WithDataTable
use WithSorting;

public $perPage = 10;

public function pageName(): string
{
if (property_exists($this, 'pageName')) {
if (! isset($this->{$this->pageName})) {
$this->{$this->pageName} = 1;
}

return $this->pageName;
} else {
return 'page';
}
}
}

0 comments on commit 2ee4578

Please sign in to comment.