mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 13:34:04 +00:00
Add docblocks to single-db models, add return types to relationship methods
This commit is contained in:
parent
c13fe5183f
commit
a46b26800f
3 changed files with 11 additions and 3 deletions
|
|
@ -3,6 +3,7 @@
|
|||
namespace Stancl\Tenancy\Tests\Etc;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class Comment extends Model
|
||||
{
|
||||
|
|
@ -10,7 +11,7 @@ class Comment extends Model
|
|||
|
||||
public $timestamps = false;
|
||||
|
||||
public function post()
|
||||
public function post(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Post::class);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue