Skip to content

Commit

Permalink
Changes to files: app/Models/Blacklist.php
Browse files Browse the repository at this point in the history
app/Models/Whitelist.php
  • Loading branch information
dedanirungu committed Sep 5, 2024
1 parent 9362d85 commit 3d4a0f4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/Models/Blacklist.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Modules\Mail\Models;

use Modules\Base\Models\BaseModel;
use Modules\Mail\Models\Contact;

class Blacklist extends BaseModel
{
Expand All @@ -20,4 +21,13 @@ class Blacklist extends BaseModel
*/
protected $table = "mail_blacklist";

/**
* Add relationship to Contact
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function contact()
{
return $this->belongsTo(Contact::class);
}

}
10 changes: 10 additions & 0 deletions app/Models/Whitelist.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Modules\Mail\Models;

use Modules\Base\Models\BaseModel;
use Modules\Mail\Models\Contact;

class Whitelist extends BaseModel
{
Expand All @@ -20,4 +21,13 @@ class Whitelist extends BaseModel
*/
protected $table = "mail_whitelist";

/**
* Add relationship to Contact
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function contact()
{
return $this->belongsTo(Contact::class);
}

}

0 comments on commit 3d4a0f4

Please sign in to comment.