Adopt Laravel type hints

This commit is contained in:
Shift
2024-04-27 08:20:32 +00:00
parent 62e68c9ace
commit fe642048f2
15 changed files with 32 additions and 20 deletions
+3 -2
View File
@@ -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');
}