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,28 @@
{
"name": "krayin/laravel-tag",
"license": "MIT",
"authors": [
{
"name": "Jitendra Singh",
"email": "jitendra@webkul.com"
}
],
"require": {
"krayin/laravel-core": "^1.0",
"krayin/laravel-user": "^1.0"
},
"autoload": {
"psr-4": {
"Webkul\\Tag\\": "src/"
}
},
"extra": {
"laravel": {
"providers": [
"Webkul\\Tag\\Providers\\TagServiceProvider"
],
"aliases": {}
}
},
"minimum-stability": "dev"
}

View File

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

View File

@@ -0,0 +1,37 @@
<?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('tags', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('color')->nullable();
$table->integer('user_id')->unsigned();
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('tags');
}
};

View File

@@ -0,0 +1,31 @@
<?php
namespace Webkul\Tag\Models;
use Illuminate\Database\Eloquent\Model;
use Webkul\Tag\Contracts\Tag as TagContract;
use Webkul\User\Models\UserProxy;
class Tag extends Model implements TagContract
{
protected $table = 'tags';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
'color',
'user_id',
];
/**
* Get the user that owns the tag.
*/
public function user()
{
return $this->belongsTo(UserProxy::modelClass());
}
}

View File

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

View File

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

View File

@@ -0,0 +1,26 @@
<?php
namespace Webkul\Tag\Providers;
use Illuminate\Routing\Router;
use Illuminate\Support\ServiceProvider;
class TagServiceProvider extends ServiceProvider
{
/**
* Bootstrap services.
*
* @return void
*/
public function boot(Router $router)
{
$this->loadMigrationsFrom(__DIR__.'/../Database/Migrations');
}
/**
* Register services.
*
* @return void
*/
public function register() {}
}

View File

@@ -0,0 +1,27 @@
<?php
namespace Webkul\Tag\Repositories;
use Webkul\Core\Eloquent\Repository;
class TagRepository extends Repository
{
/**
* Searchable fields
*/
protected $fieldSearchable = [
'name',
'color',
'user_id',
];
/**
* Specify Model class name
*
* @return mixed
*/
public function model()
{
return 'Webkul\Tag\Contracts\Tag';
}
}