logo, improved listing, some helpers, mail confirms table, confirmed flag, user title column..
This commit is contained in:
+12
-10
@@ -2,9 +2,11 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Models\Concerns\ManyManyThrough;
|
||||
use App\Models\Concerns\Reportable;
|
||||
use Illuminate\Database\Eloquent\Collection;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Riesjart\Relaquent\Model\Concerns\HasRelaquentRelationships;
|
||||
|
||||
/**
|
||||
* A data table object (referencing revisions)
|
||||
@@ -20,15 +22,15 @@ use Illuminate\Database\Eloquent\Model;
|
||||
* @property string $description
|
||||
* @property string $license
|
||||
* @property string $origin
|
||||
* @property User $owner
|
||||
* @property Table $parentTable
|
||||
* @property Table[]|Collection $forks
|
||||
* @property Revision[]|Collection $revisions
|
||||
* @property Revision $activeRevision
|
||||
* @property Proposal[]|Collection $proposal
|
||||
* @property TableComment[]|Collection $comments
|
||||
* @property User[]|Collection $favouritingUsers
|
||||
* @property User[]|Collection $discussionFollowers
|
||||
* @property-read User $owner
|
||||
* @property-read Table $parentTable
|
||||
* @property-read Table[]|Collection $forks
|
||||
* @property-read Revision[]|Collection $revisions
|
||||
* @property-read Revision $revision
|
||||
* @property-read Proposal[]|Collection $proposal
|
||||
* @property-read TableComment[]|Collection $comments
|
||||
* @property-read User[]|Collection $favouritingUsers
|
||||
* @property-read User[]|Collection $discussionFollowers
|
||||
*/
|
||||
class Table extends Model
|
||||
{
|
||||
@@ -60,7 +62,7 @@ class Table extends Model
|
||||
}
|
||||
|
||||
/** Active revision */
|
||||
public function activeRevision()
|
||||
public function revision()
|
||||
{
|
||||
return $this->belongsTo(Revision::class, 'revision_id');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user