pretty paginator and better css for buttons in card headers

This commit is contained in:
2018-07-22 17:06:08 +02:00
parent 3b123d7f08
commit 8356997133
7 changed files with 193 additions and 40 deletions
+10
View File
@@ -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);
}
}