Skip to content

Commit

Permalink
ID column
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed Oct 4, 2023
1 parent 348d5b0 commit c11071a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/Columns/ID.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace Cone\Root\Columns;

class ID extends Column
{
/**
* Create a new column instance.
*/
public function __construct(string $label = 'ID', string $modelAttribute = 'id')
{
parent::__construct($label, $modelAttribute);

$this->sortable();
}
}

0 comments on commit c11071a

Please sign in to comment.