snapshot of https://github.com/krayin/laravel-crm.git (2.2, 2026-09-18; blobs > 131072B omitted)
Some checks failed
Admin | Playwright Tests / Admin | Playwright Tests | Shard 1 Of 6 (push) Failing after 37s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 2 Of 6 (push) Failing after 7s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 4 Of 6 (push) Failing after 7s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 6 Of 6 (push) Failing after 6s
Linting Tests / PHP 8.3 test on ubuntu-latest (push) Failing after 5s
CI / PHP 8.3 test on ubuntu-latest (push) Failing after 6s
Skills Consistency / validate-skills (push) Successful in 10s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 3 Of 6 (push) Failing after 7s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 5 Of 6 (push) Failing after 6s
Some checks failed
Admin | Playwright Tests / Admin | Playwright Tests | Shard 1 Of 6 (push) Failing after 37s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 2 Of 6 (push) Failing after 7s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 4 Of 6 (push) Failing after 7s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 6 Of 6 (push) Failing after 6s
Linting Tests / PHP 8.3 test on ubuntu-latest (push) Failing after 5s
CI / PHP 8.3 test on ubuntu-latest (push) Failing after 6s
Skills Consistency / validate-skills (push) Successful in 10s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 3 Of 6 (push) Failing after 7s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 5 Of 6 (push) Failing after 6s
This commit is contained in:
47
packages/Webkul/Marketing/src/Models/Campaign.php
Normal file
47
packages/Webkul/Marketing/src/Models/Campaign.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
namespace Webkul\Marketing\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Webkul\EmailTemplate\Models\EmailTemplateProxy;
|
||||
use Webkul\Marketing\Contracts\Campaign as CampaignContract;
|
||||
|
||||
class Campaign extends Model implements CampaignContract
|
||||
{
|
||||
/**
|
||||
* Define the table for the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $table = 'marketing_campaigns';
|
||||
|
||||
/**
|
||||
* The attributes that are fillable.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'subject',
|
||||
'status',
|
||||
'marketing_template_id',
|
||||
'marketing_event_id',
|
||||
'spooling',
|
||||
];
|
||||
|
||||
/**
|
||||
* Get the email template
|
||||
*/
|
||||
public function email_template()
|
||||
{
|
||||
return $this->belongsTo(EmailTemplateProxy::modelClass(), 'marketing_template_id');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the event
|
||||
*/
|
||||
public function event()
|
||||
{
|
||||
return $this->belongsTo(EventProxy::modelClass(), 'marketing_event_id');
|
||||
}
|
||||
}
|
||||
7
packages/Webkul/Marketing/src/Models/CampaignProxy.php
Normal file
7
packages/Webkul/Marketing/src/Models/CampaignProxy.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace Webkul\Marketing\Models;
|
||||
|
||||
use Konekt\Concord\Proxies\ModelProxy;
|
||||
|
||||
class CampaignProxy extends ModelProxy {}
|
||||
32
packages/Webkul/Marketing/src/Models/Event.php
Normal file
32
packages/Webkul/Marketing/src/Models/Event.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace Webkul\Marketing\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Webkul\Marketing\Contracts\Event as EventContract;
|
||||
|
||||
class Event extends Model implements EventContract
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $table = 'marketing_events';
|
||||
|
||||
/**
|
||||
* The attributes that are fillable.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'description',
|
||||
'date',
|
||||
];
|
||||
|
||||
public function campaigns()
|
||||
{
|
||||
return $this->hasMany(CampaignProxy::modelClass(), 'marketing_event_id');
|
||||
}
|
||||
}
|
||||
7
packages/Webkul/Marketing/src/Models/EventProxy.php
Normal file
7
packages/Webkul/Marketing/src/Models/EventProxy.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace Webkul\Marketing\Models;
|
||||
|
||||
use Konekt\Concord\Proxies\ModelProxy;
|
||||
|
||||
class EventProxy extends ModelProxy {}
|
||||
Reference in New Issue
Block a user