mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 00:01:21 +00:00
Adopt Laravel type hints
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
use Blacklight\ColorCLI;
|
||||
use Blacklight\ConsoleTools;
|
||||
use Blacklight\ElasticSearchSiteSearch;
|
||||
@@ -89,12 +90,12 @@ class Predb extends Model
|
||||
*/
|
||||
protected $guarded = [];
|
||||
|
||||
public function hash()
|
||||
public function hash(): HasMany
|
||||
{
|
||||
return $this->hasMany(PredbHash::class, 'predb_id');
|
||||
}
|
||||
|
||||
public function release()
|
||||
public function release(): HasMany
|
||||
{
|
||||
return $this->hasMany(Release::class, 'predb_id');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user