mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 13:24:03 +00:00
more php 7 changes
This commit is contained in:
parent
bb40b60d3e
commit
8758c8db3f
2 changed files with 3 additions and 3 deletions
|
|
@ -57,7 +57,7 @@ class Tip extends Model
|
|||
return $this->belongsTo(Author::class, 'author_username', 'username');
|
||||
}
|
||||
|
||||
public function getTweetUrlAttribute(): string|null
|
||||
public function getTweetUrlAttribute(): string
|
||||
{
|
||||
return "https://twitter.com/{$this->author_username}/status/{$this->tweet_id}";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue