Type hint all device model relations (#12686)

This commit is contained in:
Jellyfrog
2021-03-31 17:28:47 +02:00
committed by GitHub
co-authored by GitHub
parent dc160c6813
commit 4b6efba040
28 changed files with 90 additions and 64 deletions
+2 -1
View File
@@ -3,6 +3,7 @@
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
use LibreNMS\Interfaces\Models\Keyable;
class MplsService extends Model implements Keyable
@@ -45,7 +46,7 @@ class MplsService extends Model implements Keyable
// ---- Define Relationships ----
public function binds()
public function binds(): HasMany
{
return $this->hasMany(\App\Models\MplsSdpBind::class, 'svc_id');
}