Explorar el Código

Update Collection model

Daniel Supernault hace 6 años
padre
commit
d26704c713
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      app/Collection.php

+ 4 - 1
app/Collection.php

@@ -6,5 +6,8 @@ use Illuminate\Database\Eloquent\Model;
 
 class Collection extends Model
 {
-    //
+	public function profile()
+	{
+		return $this->belongsTo(Profile::class);
+	}
 }