pretty paginator and better css for buttons in card headers
This commit is contained in:
@@ -22,6 +22,7 @@ use Riesjart\Relaquent\Model\Concerns\HasRelaquentRelationships;
|
||||
* @property string $description
|
||||
* @property string $license
|
||||
* @property string $origin
|
||||
* @property-read string $viewPage
|
||||
* @property-read User $owner
|
||||
* @property-read Table $parentTable
|
||||
* @property-read Table[]|Collection $forks
|
||||
@@ -96,4 +97,13 @@ class Table extends Model
|
||||
{
|
||||
return $this->belongsToMany(User::class, 'discussion_follows');
|
||||
}
|
||||
|
||||
public function __get($name)
|
||||
{
|
||||
if ($name == 'viewPage') {
|
||||
return route('table.view', ['user' => $this->cachedOwner()->name, 'table' => $this->name]);
|
||||
}
|
||||
|
||||
return parent::__get($name);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user