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

This commit is contained in:
upstream-mirror
2026-09-18 04:37:41 +05:00
commit 135ffdb085
1274 changed files with 144880 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
<?php
namespace Webkul\EmailTemplate\Contracts;
interface EmailTemplate {}

View File

@@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('email_templates', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('subject');
$table->text('content');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('email_templates');
}
};

View File

@@ -0,0 +1,30 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('email_templates', function (Blueprint $table) {
$table->string('name')->unique()->change();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('email_templates', function (Blueprint $table) {
$table->dropUnique(['name']);
$table->string('name')->change();
});
}
};

View File

@@ -0,0 +1,15 @@
<?php
namespace Webkul\EmailTemplate\Models;
use Illuminate\Database\Eloquent\Model;
use Webkul\EmailTemplate\Contracts\EmailTemplate as EmailTemplateContract;
class EmailTemplate extends Model implements EmailTemplateContract
{
protected $fillable = [
'name',
'subject',
'content',
];
}

View File

@@ -0,0 +1,7 @@
<?php
namespace Webkul\EmailTemplate\Models;
use Konekt\Concord\Proxies\ModelProxy;
class EmailTemplateProxy extends ModelProxy {}

View File

@@ -0,0 +1,18 @@
<?php
namespace Webkul\EmailTemplate\Providers;
use Illuminate\Support\ServiceProvider;
class EmailTemplateServiceProvider extends ServiceProvider
{
/**
* Bootstrap services.
*
* @return void
*/
public function boot()
{
$this->loadMigrationsFrom(__DIR__.'/../Database/Migrations');
}
}

View File

@@ -0,0 +1,13 @@
<?php
namespace Webkul\EmailTemplate\Providers;
use Webkul\Core\Providers\BaseModuleServiceProvider;
use Webkul\EmailTemplate\Models\EmailTemplate;
class ModuleServiceProvider extends BaseModuleServiceProvider
{
protected $models = [
EmailTemplate::class,
];
}

View File

@@ -0,0 +1,18 @@
<?php
namespace Webkul\EmailTemplate\Repositories;
use Webkul\Core\Eloquent\Repository;
class EmailTemplateRepository extends Repository
{
/**
* Specify Model class name
*
* @return mixed
*/
public function model()
{
return 'Webkul\EmailTemplate\Contracts\EmailTemplate';
}
}