repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/database/factories/EntityWithInvitedAtFactory.php | tests/database/factories/EntityWithInvitedAtFactory.php | <?php
/*
* This file is part of Laravel Ban.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Database\Factories;
use Cog\Tests\Laravel\Flag\Stubs\Models\Classic\EntityWithInvitedAt;
use Illuminate\Database\Eloquent\Factories\Factory;
final class EntityWithInvitedAtFactory extends Factory
{
protected $model = EntityWithInvitedAt::class;
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'name' => $this->faker->word(),
'invited_at' => null,
];
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/database/factories/EntityWithVerifiedAtFactory.php | tests/database/factories/EntityWithVerifiedAtFactory.php | <?php
/*
* This file is part of Laravel Ban.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Database\Factories;
use Cog\Tests\Laravel\Flag\Stubs\Models\Classic\EntityWithVerifiedAt;
use Illuminate\Database\Eloquent\Factories\Factory;
final class EntityWithVerifiedAtFactory extends Factory
{
protected $model = EntityWithVerifiedAt::class;
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'name' => $this->faker->word(),
'verified_at' => null,
];
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/database/factories/EntityWithApprovedAtFactory.php | tests/database/factories/EntityWithApprovedAtFactory.php | <?php
/*
* This file is part of Laravel Ban.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Database\Factories;
use Cog\Tests\Laravel\Flag\Stubs\Models\Classic\EntityWithApprovedAt;
use Illuminate\Database\Eloquent\Factories\Factory;
final class EntityWithApprovedAtFactory extends Factory
{
protected $model = EntityWithApprovedAt::class;
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'name' => $this->faker->word(),
'approved_at' => null,
];
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/database/factories/EntityWithClosedFlagFactory.php | tests/database/factories/EntityWithClosedFlagFactory.php | <?php
/*
* This file is part of Laravel Ban.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Database\Factories;
use Cog\Tests\Laravel\Flag\Stubs\Models\Inverse\EntityWithClosedFlag;
use Illuminate\Database\Eloquent\Factories\Factory;
final class EntityWithClosedFlagFactory extends Factory
{
protected $model = EntityWithClosedFlag::class;
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'name' => $this->faker->word(),
'is_closed' => null,
];
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/database/factories/EntityWithEndedAtFactory.php | tests/database/factories/EntityWithEndedAtFactory.php | <?php
/*
* This file is part of Laravel Ban.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Database\Factories;
use Cog\Tests\Laravel\Flag\Stubs\Models\Inverse\EntityWithEndedAt;
use Illuminate\Database\Eloquent\Factories\Factory;
final class EntityWithEndedAtFactory extends Factory
{
protected $model = EntityWithEndedAt::class;
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'name' => $this->faker->word(),
'ended_at' => null,
];
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/database/factories/EntityWithEndedFlagFactory.php | tests/database/factories/EntityWithEndedFlagFactory.php | <?php
/*
* This file is part of Laravel Ban.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Database\Factories;
use Cog\Tests\Laravel\Flag\Stubs\Models\Inverse\EntityWithEndedFlag;
use Illuminate\Database\Eloquent\Factories\Factory;
final class EntityWithEndedFlagFactory extends Factory
{
protected $model = EntityWithEndedFlag::class;
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'name' => $this->faker->word(),
'is_ended' => null,
];
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/database/factories/EntityWithAcceptedFlagFactory.php | tests/database/factories/EntityWithAcceptedFlagFactory.php | <?php
/*
* This file is part of Laravel Ban.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Database\Factories;
use Cog\Tests\Laravel\Flag\Stubs\Models\Classic\EntityWithAcceptedFlag;
use Illuminate\Database\Eloquent\Factories\Factory;
final class EntityWithAcceptedFlagFactory extends Factory
{
protected $model = EntityWithAcceptedFlag::class;
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'name' => $this->faker->word(),
'is_accepted' => false,
];
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/database/factories/EntityWithExpiredFlagFactory.php | tests/database/factories/EntityWithExpiredFlagFactory.php | <?php
/*
* This file is part of Laravel Ban.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Database\Factories;
use Cog\Tests\Laravel\Flag\Stubs\Models\Inverse\EntityWithExpiredFlag;
use Illuminate\Database\Eloquent\Factories\Factory;
final class EntityWithExpiredFlagFactory extends Factory
{
protected $model = EntityWithExpiredFlag::class;
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'name' => $this->faker->word(),
'is_expired' => null,
];
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/database/factories/EntityWithArchivedAtFactory.php | tests/database/factories/EntityWithArchivedAtFactory.php | <?php
/*
* This file is part of Laravel Ban.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Database\Factories;
use Cog\Tests\Laravel\Flag\Stubs\Models\Inverse\EntityWithArchivedAt;
use Illuminate\Database\Eloquent\Factories\Factory;
final class EntityWithArchivedAtFactory extends Factory
{
protected $model = EntityWithArchivedAt::class;
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'name' => $this->faker->word(),
'archived_at' => null,
];
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/database/factories/EntityWithDraftedAtFactory.php | tests/database/factories/EntityWithDraftedAtFactory.php | <?php
/*
* This file is part of Laravel Ban.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Database\Factories;
use Cog\Tests\Laravel\Flag\Stubs\Models\Inverse\EntityWithDraftedAt;
use Illuminate\Database\Eloquent\Factories\Factory;
final class EntityWithDraftedAtFactory extends Factory
{
protected $model = EntityWithDraftedAt::class;
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'name' => $this->faker->word(),
'drafted_at' => null,
];
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/database/factories/EntityWithDraftedFlagFactory.php | tests/database/factories/EntityWithDraftedFlagFactory.php | <?php
/*
* This file is part of Laravel Ban.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Database\Factories;
use Cog\Tests\Laravel\Flag\Stubs\Models\Inverse\EntityWithDraftedFlag;
use Illuminate\Database\Eloquent\Factories\Factory;
final class EntityWithDraftedFlagFactory extends Factory
{
protected $model = EntityWithDraftedFlag::class;
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'name' => $this->faker->word(),
'is_drafted' => null,
];
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/database/migrations/2016_09_25_182750_create_entity_with_closed_flag_table.php | tests/database/migrations/2016_09_25_182750_create_entity_with_closed_flag_table.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
final class CreateEntityWithClosedFlagTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
Schema::create('entity_with_closed_flag', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->boolean('is_closed');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{
Schema::dropIfExists('entity_with_closed_flag');
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/database/migrations/2016_09_25_182750_create_entity_with_published_at_table.php | tests/database/migrations/2016_09_25_182750_create_entity_with_published_at_table.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
final class CreateEntityWithPublishedAtTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
Schema::create('entity_with_published_at', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->timestamp('published_at')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{
Schema::dropIfExists('entity_with_published_at');
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/database/migrations/2016_09_25_182750_create_entity_with_ended_at_table.php | tests/database/migrations/2016_09_25_182750_create_entity_with_ended_at_table.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
final class CreateEntityWithEndedAtTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
Schema::create('entity_with_ended_at', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->timestamp('ended_at')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{
Schema::dropIfExists('entity_with_ended_at');
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/database/migrations/2016_09_25_182750_create_entity_with_accepted_at_table.php | tests/database/migrations/2016_09_25_182750_create_entity_with_accepted_at_table.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
final class CreateEntityWithAcceptedAtTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
Schema::create('entity_with_accepted_at', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->timestamp('accepted_at')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{
Schema::dropIfExists('entity_with_accepted_at');
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/database/migrations/2016_09_25_182750_create_entity_with_invited_at_table.php | tests/database/migrations/2016_09_25_182750_create_entity_with_invited_at_table.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
final class CreateEntityWithInvitedAtTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
Schema::create('entity_with_invited_at', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->timestamp('invited_at')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{
Schema::dropIfExists('entity_with_invited_at');
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/database/migrations/2016_09_25_182750_create_entity_with_ended_flag_table.php | tests/database/migrations/2016_09_25_182750_create_entity_with_ended_flag_table.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
final class CreateEntityWithEndedFlagTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
Schema::create('entity_with_ended_flag', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->boolean('is_ended');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{
Schema::dropIfExists('entity_with_ended_flag');
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/database/migrations/2016_09_25_182750_create_entity_with_expired_at_table.php | tests/database/migrations/2016_09_25_182750_create_entity_with_expired_at_table.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
final class CreateEntityWithExpiredAtTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
Schema::create('entity_with_expired_at', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->timestamp('expired_at')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{
Schema::dropIfExists('entity_with_expired_at');
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/database/migrations/2016_09_25_182750_create_entity_with_drafted_flag_table.php | tests/database/migrations/2016_09_25_182750_create_entity_with_drafted_flag_table.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
final class CreateEntityWithDraftedFlagTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
Schema::create('entity_with_drafted_flag', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->boolean('is_drafted');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{
Schema::dropIfExists('entity_with_drafted_flag');
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/database/migrations/2016_09_25_182750_create_entity_with_drafted_at_table.php | tests/database/migrations/2016_09_25_182750_create_entity_with_drafted_at_table.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
final class CreateEntityWithDraftedAtTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
Schema::create('entity_with_drafted_at', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->timestamp('drafted_at')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{
Schema::dropIfExists('entity_with_drafted_at');
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/database/migrations/2016_09_25_182750_create_entity_with_published_flag_table.php | tests/database/migrations/2016_09_25_182750_create_entity_with_published_flag_table.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
final class CreateEntityWithPublishedFlagTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
Schema::create('entity_with_published_flag', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->boolean('is_published');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{
Schema::dropIfExists('entity_with_published_flag');
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/database/migrations/2016_09_25_182750_create_entity_with_approved_flag_table.php | tests/database/migrations/2016_09_25_182750_create_entity_with_approved_flag_table.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
final class CreateEntityWithApprovedFlagTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
Schema::create('entity_with_approved_flag', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->boolean('is_approved');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{
Schema::dropIfExists('entity_with_approved_flag');
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/database/migrations/2016_09_25_182750_create_entity_with_verified_at_table.php | tests/database/migrations/2016_09_25_182750_create_entity_with_verified_at_table.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
final class CreateEntityWithVerifiedAtTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
Schema::create('entity_with_verified_at', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->timestamp('verified_at')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{
Schema::dropIfExists('entity_with_verified_at');
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/database/migrations/2016_09_25_182750_create_entity_with_active_flag_table.php | tests/database/migrations/2016_09_25_182750_create_entity_with_active_flag_table.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
final class CreateEntityWithActiveFlagTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
Schema::create('entity_with_active_flag', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->boolean('is_active');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{
Schema::dropIfExists('entity_with_active_flag');
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/database/migrations/2016_09_25_182750_create_entity_with_expired_flag_table.php | tests/database/migrations/2016_09_25_182750_create_entity_with_expired_flag_table.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
final class CreateEntityWithExpiredFlagTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
Schema::create('entity_with_expired_flag', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->boolean('is_expired');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{
Schema::dropIfExists('entity_with_expired_flag');
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/database/migrations/2016_09_25_182750_create_entity_with_invited_flag_table.php | tests/database/migrations/2016_09_25_182750_create_entity_with_invited_flag_table.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
final class CreateEntityWithInvitedFlagTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
Schema::create('entity_with_invited_flag', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->boolean('is_invited');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{
Schema::dropIfExists('entity_with_invited_flag');
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/database/migrations/2016_09_25_182750_create_entity_with_accepted_flag_table.php | tests/database/migrations/2016_09_25_182750_create_entity_with_accepted_flag_table.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
final class CreateEntityWithAcceptedFlagTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
Schema::create('entity_with_accepted_flag', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->boolean('is_accepted');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{
Schema::dropIfExists('entity_with_accepted_flag');
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/database/migrations/2016_09_25_182750_create_entity_with_verified_flag_table.php | tests/database/migrations/2016_09_25_182750_create_entity_with_verified_flag_table.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
final class CreateEntityWithVerifiedFlagTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
Schema::create('entity_with_verified_flag', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->boolean('is_verified');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{
Schema::dropIfExists('entity_with_verified_flag');
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/database/migrations/2016_09_25_182750_create_entity_with_closed_at_table.php | tests/database/migrations/2016_09_25_182750_create_entity_with_closed_at_table.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
final class CreateEntityWithClosedAtTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
Schema::create('entity_with_closed_at', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->timestamp('closed_at')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{
Schema::dropIfExists('entity_with_closed_at');
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/database/migrations/2016_09_25_182750_create_entity_with_archived_at_table.php | tests/database/migrations/2016_09_25_182750_create_entity_with_archived_at_table.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
final class CreateEntityWithArchivedAtTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
Schema::create('entity_with_archived_at', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->timestamp('archived_at')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{
Schema::dropIfExists('entity_with_archived_at');
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/database/migrations/2016_09_25_182750_create_entity_with_kept_flag_table.php | tests/database/migrations/2016_09_25_182750_create_entity_with_kept_flag_table.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
final class CreateEntityWithKeptFlagTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
Schema::create('entity_with_kept_flag', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->boolean('is_kept')->default(false);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{
Schema::dropIfExists('entity_with_kept_flag');
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/database/migrations/2016_09_25_182750_create_entity_with_archived_flag_table.php | tests/database/migrations/2016_09_25_182750_create_entity_with_archived_flag_table.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
final class CreateEntityWithArchivedFlagTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
Schema::create('entity_with_archived_flag', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->boolean('is_archived');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{
Schema::dropIfExists('entity_with_archived_flag');
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/database/migrations/2016_09_25_182750_create_entity_with_approved_at_table.php | tests/database/migrations/2016_09_25_182750_create_entity_with_approved_at_table.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
final class CreateEntityWithApprovedAtTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
Schema::create('entity_with_approved_at', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->timestamp('approved_at')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{
Schema::dropIfExists('entity_with_approved_at');
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Classic/EntityWithApprovedFlagApplied.php | tests/Stubs/Models/Classic/EntityWithApprovedFlagApplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Classic;
use Cog\Flag\Traits\Classic\HasApprovedFlag;
use Illuminate\Database\Eloquent\Model;
final class EntityWithApprovedFlagApplied extends Model
{
use HasApprovedFlag;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_approved_flag';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if ApprovedFlagScope should be applied by default.
*
* @return bool
*/
public function shouldApplyApprovedFlagScope(): bool
{
return true;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Classic/EntityWithApprovedAtApplied.php | tests/Stubs/Models/Classic/EntityWithApprovedAtApplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Classic;
use Cog\Flag\Traits\Classic\HasApprovedAt;
use Illuminate\Database\Eloquent\Model;
final class EntityWithApprovedAtApplied extends Model
{
use HasApprovedAt;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_approved_at';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if ApprovedAtScope should be applied by default.
*
* @return bool
*/
public function shouldApplyApprovedAtScope(): bool
{
return true;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Classic/EntityWithAcceptedFlag.php | tests/Stubs/Models/Classic/EntityWithAcceptedFlag.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Classic;
use Cog\Flag\Traits\Classic\HasAcceptedFlag;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
final class EntityWithAcceptedFlag extends Model
{
use HasAcceptedFlag;
use HasFactory;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_accepted_flag';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Classic/EntityWithVerifiedFlagApplied.php | tests/Stubs/Models/Classic/EntityWithVerifiedFlagApplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Classic;
use Cog\Flag\Traits\Classic\HasVerifiedFlag;
use Illuminate\Database\Eloquent\Model;
final class EntityWithVerifiedFlagApplied extends Model
{
use HasVerifiedFlag;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_verified_flag';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if VerifiedFlagScope should be applied by default.
*
* @return bool
*/
public function shouldApplyVerifiedFlagScope(): bool
{
return true;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Classic/EntityWithPublishedFlag.php | tests/Stubs/Models/Classic/EntityWithPublishedFlag.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Classic;
use Cog\Flag\Traits\Classic\HasPublishedFlag;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
final class EntityWithPublishedFlag extends Model
{
use HasFactory;
use HasPublishedFlag;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_published_flag';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Classic/EntityWithInvitedAt.php | tests/Stubs/Models/Classic/EntityWithInvitedAt.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Classic;
use Cog\Flag\Traits\Classic\HasInvitedAt;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
final class EntityWithInvitedAt extends Model
{
use HasFactory;
use HasInvitedAt;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_invited_at';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Classic/EntityWithVerifiedFlagUnapplied.php | tests/Stubs/Models/Classic/EntityWithVerifiedFlagUnapplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Classic;
use Cog\Flag\Traits\Classic\HasVerifiedFlag;
use Illuminate\Database\Eloquent\Model;
final class EntityWithVerifiedFlagUnapplied extends Model
{
use HasVerifiedFlag;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_verified_flag';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if VerifiedFlagScope should be applied by default.
*
* @return bool
*/
public function shouldApplyVerifiedFlagScope(): bool
{
return false;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Classic/EntityWithPublishedAtUnapplied.php | tests/Stubs/Models/Classic/EntityWithPublishedAtUnapplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Classic;
use Cog\Flag\Traits\Classic\HasPublishedAt;
use Illuminate\Database\Eloquent\Model;
final class EntityWithPublishedAtUnapplied extends Model
{
use HasPublishedAt;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_published_at';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if PublishedAtScope should be applied by default.
*
* @return bool
*/
public function shouldApplyPublishedAtScope(): bool
{
return false;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Classic/EntityWithAcceptedFlagApplied.php | tests/Stubs/Models/Classic/EntityWithAcceptedFlagApplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Classic;
use Cog\Flag\Traits\Classic\HasAcceptedFlag;
use Illuminate\Database\Eloquent\Model;
final class EntityWithAcceptedFlagApplied extends Model
{
use HasAcceptedFlag;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_accepted_flag';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if AcceptedFlagScope should be applied by default.
*
* @return bool
*/
public function shouldApplyAcceptedFlagScope(): bool
{
return true;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Classic/EntityWithVerifiedFlag.php | tests/Stubs/Models/Classic/EntityWithVerifiedFlag.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Classic;
use Cog\Flag\Traits\Classic\HasVerifiedFlag;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
final class EntityWithVerifiedFlag extends Model
{
use HasFactory;
use HasVerifiedFlag;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_verified_flag';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Classic/EntityWithVerifiedAtUnapplied.php | tests/Stubs/Models/Classic/EntityWithVerifiedAtUnapplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Classic;
use Cog\Flag\Traits\Classic\HasVerifiedAt;
use Illuminate\Database\Eloquent\Model;
final class EntityWithVerifiedAtUnapplied extends Model
{
use HasVerifiedAt;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_verified_at';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if VerifiedAtScope should be applied by default.
*
* @return bool
*/
public function shouldApplyVerifiedAtScope(): bool
{
return false;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Classic/EntityWithVerifiedAt.php | tests/Stubs/Models/Classic/EntityWithVerifiedAt.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Classic;
use Cog\Flag\Traits\Classic\HasVerifiedAt;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
final class EntityWithVerifiedAt extends Model
{
use HasFactory;
use HasVerifiedAt;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_verified_at';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Classic/EntityWithPublishedAt.php | tests/Stubs/Models/Classic/EntityWithPublishedAt.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Classic;
use Cog\Flag\Traits\Classic\HasPublishedAt;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
final class EntityWithPublishedAt extends Model
{
use HasFactory;
use HasPublishedAt;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_published_at';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Classic/EntityWithKeptFlag.php | tests/Stubs/Models/Classic/EntityWithKeptFlag.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Classic;
use Cog\Flag\Traits\Classic\HasKeptFlag;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
final class EntityWithKeptFlag extends Model
{
use HasFactory;
use HasKeptFlag;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_kept_flag';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Classic/EntityWithInvitedAtUnapplied.php | tests/Stubs/Models/Classic/EntityWithInvitedAtUnapplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Classic;
use Cog\Flag\Traits\Classic\HasInvitedAt;
use Illuminate\Database\Eloquent\Model;
final class EntityWithInvitedAtUnapplied extends Model
{
use HasInvitedAt;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_invited_at';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if InvitedAtScope should be applied by default.
*
* @return bool
*/
public function shouldApplyInvitedAtScope(): bool
{
return false;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Classic/EntityWithInvitedFlagApplied.php | tests/Stubs/Models/Classic/EntityWithInvitedFlagApplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Classic;
use Cog\Flag\Traits\Classic\HasInvitedFlag;
use Illuminate\Database\Eloquent\Model;
final class EntityWithInvitedFlagApplied extends Model
{
use HasInvitedFlag;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_invited_flag';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if InvitedFlagScope should be applied by default.
*
* @return bool
*/
public function shouldApplyInvitedFlagScope(): bool
{
return true;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Classic/EntityWithKeptFlagUnapplied.php | tests/Stubs/Models/Classic/EntityWithKeptFlagUnapplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Classic;
use Cog\Flag\Traits\Classic\HasKeptFlag;
use Illuminate\Database\Eloquent\Model;
final class EntityWithKeptFlagUnapplied extends Model
{
use HasKeptFlag;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_kept_flag';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if KeptFlagScope should be applied by default.
*
* @return bool
*/
public function shouldApplyKeptFlagScope(): bool
{
return false;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Classic/EntityWithApprovedAt.php | tests/Stubs/Models/Classic/EntityWithApprovedAt.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Classic;
use Cog\Flag\Traits\Classic\HasApprovedAt;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
final class EntityWithApprovedAt extends Model
{
use HasApprovedAt;
use HasFactory;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_approved_at';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Classic/EntityWithPublishedFlagUnapplied.php | tests/Stubs/Models/Classic/EntityWithPublishedFlagUnapplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Classic;
use Cog\Flag\Traits\Classic\HasPublishedFlag;
use Illuminate\Database\Eloquent\Model;
final class EntityWithPublishedFlagUnapplied extends Model
{
use HasPublishedFlag;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_published_flag';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if PublishedFlagScope should be applied by default.
*
* @return bool
*/
public function shouldApplyPublishedFlagScope(): bool
{
return false;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Classic/EntityWithAcceptedFlagUnapplied.php | tests/Stubs/Models/Classic/EntityWithAcceptedFlagUnapplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Classic;
use Cog\Flag\Traits\Classic\HasAcceptedFlag;
use Illuminate\Database\Eloquent\Model;
final class EntityWithAcceptedFlagUnapplied extends Model
{
use HasAcceptedFlag;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_accepted_flag';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if AcceptedFlagScope should be applied by default.
*
* @return bool
*/
public function shouldApplyAcceptedFlagScope(): bool
{
return false;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Classic/EntityWithActiveFlagUnapplied.php | tests/Stubs/Models/Classic/EntityWithActiveFlagUnapplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Classic;
use Cog\Flag\Traits\Classic\HasActiveFlag;
use Illuminate\Database\Eloquent\Model;
final class EntityWithActiveFlagUnapplied extends Model
{
use HasActiveFlag;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_active_flag';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if ActiveFlagScope should be applied by default.
*
* @return bool
*/
public function shouldApplyActiveFlagScope(): bool
{
return false;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Classic/EntityWithActiveFlagApplied.php | tests/Stubs/Models/Classic/EntityWithActiveFlagApplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Classic;
use Cog\Flag\Traits\Classic\HasActiveFlag;
use Illuminate\Database\Eloquent\Model;
final class EntityWithActiveFlagApplied extends Model
{
use HasActiveFlag;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_active_flag';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if ActiveFlagScope should be applied by default.
*
* @return bool
*/
public function shouldApplyActiveFlagScope(): bool
{
return true;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Classic/EntityWithApprovedFlagUnapplied.php | tests/Stubs/Models/Classic/EntityWithApprovedFlagUnapplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Classic;
use Cog\Flag\Traits\Classic\HasApprovedFlag;
use Illuminate\Database\Eloquent\Model;
final class EntityWithApprovedFlagUnapplied extends Model
{
use HasApprovedFlag;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_approved_flag';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if ApprovedFlagScope should be applied by default.
*
* @return bool
*/
public function shouldApplyApprovedFlagScope(): bool
{
return false;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Classic/EntityWithVerifiedAtApplied.php | tests/Stubs/Models/Classic/EntityWithVerifiedAtApplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Classic;
use Cog\Flag\Traits\Classic\HasVerifiedAt;
use Illuminate\Database\Eloquent\Model;
final class EntityWithVerifiedAtApplied extends Model
{
use HasVerifiedAt;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_verified_at';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if VerifiedAtScope should be applied by default.
*
* @return bool
*/
public function shouldApplyVerifiedAtScope(): bool
{
return true;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Classic/EntityWithPublishedAtApplied.php | tests/Stubs/Models/Classic/EntityWithPublishedAtApplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Classic;
use Cog\Flag\Traits\Classic\HasPublishedAt;
use Illuminate\Database\Eloquent\Model;
final class EntityWithPublishedAtApplied extends Model
{
use HasPublishedAt;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_published_at';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if PublishedAtScope should be applied by default.
*
* @return bool
*/
public function shouldApplyPublishedAtScope(): bool
{
return true;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Classic/EntityWithInvitedFlagUnapplied.php | tests/Stubs/Models/Classic/EntityWithInvitedFlagUnapplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Classic;
use Cog\Flag\Traits\Classic\HasInvitedFlag;
use Illuminate\Database\Eloquent\Model;
final class EntityWithInvitedFlagUnapplied extends Model
{
use HasInvitedFlag;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_invited_flag';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if InvitedFlagScope should be applied by default.
*
* @return bool
*/
public function shouldApplyInvitedFlagScope(): bool
{
return false;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Classic/EntityWithKeptFlagApplied.php | tests/Stubs/Models/Classic/EntityWithKeptFlagApplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Classic;
use Cog\Flag\Traits\Classic\HasKeptFlag;
use Illuminate\Database\Eloquent\Model;
final class EntityWithKeptFlagApplied extends Model
{
use HasKeptFlag;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_kept_flag';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if KeptFlagScope should be applied by default.
*
* @return bool
*/
public function shouldApplyKeptFlagScope(): bool
{
return true;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Classic/EntityWithPublishedFlagApplied.php | tests/Stubs/Models/Classic/EntityWithPublishedFlagApplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Classic;
use Cog\Flag\Traits\Classic\HasPublishedFlag;
use Illuminate\Database\Eloquent\Model;
final class EntityWithPublishedFlagApplied extends Model
{
use HasPublishedFlag;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_published_flag';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if PublishedFlagScope should be applied by default.
*
* @return bool
*/
public function shouldApplyPublishedFlagScope(): bool
{
return true;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Classic/EntityWithActiveFlag.php | tests/Stubs/Models/Classic/EntityWithActiveFlag.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Classic;
use Cog\Flag\Traits\Classic\HasActiveFlag;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
final class EntityWithActiveFlag extends Model
{
use HasActiveFlag;
use HasFactory;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_active_flag';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Classic/EntityWithApprovedFlag.php | tests/Stubs/Models/Classic/EntityWithApprovedFlag.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Classic;
use Cog\Flag\Traits\Classic\HasApprovedFlag;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
final class EntityWithApprovedFlag extends Model
{
use HasApprovedFlag;
use HasFactory;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_approved_flag';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Classic/EntityWithAcceptedAtUnapplied.php | tests/Stubs/Models/Classic/EntityWithAcceptedAtUnapplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Classic;
use Cog\Flag\Traits\Classic\HasAcceptedAt;
use Illuminate\Database\Eloquent\Model;
final class EntityWithAcceptedAtUnapplied extends Model
{
use HasAcceptedAt;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_accepted_at';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if AcceptedAtScope should be applied by default.
*
* @return bool
*/
public function shouldApplyAcceptedAtScope(): bool
{
return false;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Classic/EntityWithInvitedAtApplied.php | tests/Stubs/Models/Classic/EntityWithInvitedAtApplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Classic;
use Cog\Flag\Traits\Classic\HasInvitedAt;
use Illuminate\Database\Eloquent\Model;
final class EntityWithInvitedAtApplied extends Model
{
use HasInvitedAt;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_invited_at';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if InvitedAtScope should be applied by default.
*
* @return bool
*/
public function shouldApplyInvitedAtScope(): bool
{
return true;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Classic/EntityWithInvitedFlag.php | tests/Stubs/Models/Classic/EntityWithInvitedFlag.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Classic;
use Cog\Flag\Traits\Classic\HasInvitedFlag;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
final class EntityWithInvitedFlag extends Model
{
use HasFactory;
use HasInvitedFlag;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_invited_flag';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Classic/EntityWithApprovedAtUnapplied.php | tests/Stubs/Models/Classic/EntityWithApprovedAtUnapplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Classic;
use Cog\Flag\Traits\Classic\HasApprovedAt;
use Illuminate\Database\Eloquent\Model;
final class EntityWithApprovedAtUnapplied extends Model
{
use HasApprovedAt;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_approved_at';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if ApprovedAtScope should be applied by default.
*
* @return bool
*/
public function shouldApplyApprovedAtScope(): bool
{
return false;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Classic/EntityWithAcceptedAtApplied.php | tests/Stubs/Models/Classic/EntityWithAcceptedAtApplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Classic;
use Cog\Flag\Traits\Classic\HasAcceptedAt;
use Illuminate\Database\Eloquent\Model;
final class EntityWithAcceptedAtApplied extends Model
{
use HasAcceptedAt;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_accepted_at';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if AcceptedAtScope should be applied by default.
*
* @return bool
*/
public function shouldApplyAcceptedAtScope(): bool
{
return true;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Classic/EntityWithAcceptedAt.php | tests/Stubs/Models/Classic/EntityWithAcceptedAt.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Classic;
use Cog\Flag\Traits\Classic\HasAcceptedAt;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
final class EntityWithAcceptedAt extends Model
{
use HasAcceptedAt;
use HasFactory;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_accepted_at';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Inverse/EntityWithExpiredAtApplied.php | tests/Stubs/Models/Inverse/EntityWithExpiredAtApplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Inverse;
use Cog\Flag\Traits\Inverse\HasExpiredAt;
use Illuminate\Database\Eloquent\Model;
final class EntityWithExpiredAtApplied extends Model
{
use HasExpiredAt;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_expired_at';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if ExpiredAtScope should be applied by default.
*
* @return bool
*/
public function shouldApplyExpiredAtScope(): bool
{
return true;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Inverse/EntityWithExpiredAt.php | tests/Stubs/Models/Inverse/EntityWithExpiredAt.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Inverse;
use Cog\Flag\Traits\Inverse\HasExpiredAt;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
final class EntityWithExpiredAt extends Model
{
use HasExpiredAt;
use HasFactory;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_expired_at';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Inverse/EntityWithEndedAtUnapplied.php | tests/Stubs/Models/Inverse/EntityWithEndedAtUnapplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Inverse;
use Cog\Flag\Traits\Inverse\HasEndedAt;
use Illuminate\Database\Eloquent\Model;
final class EntityWithEndedAtUnapplied extends Model
{
use HasEndedAt;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_ended_at';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if EndedAtScope should be applied by default.
*
* @return bool
*/
public function shouldApplyEndedAtScope(): bool
{
return false;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Inverse/EntityWithClosedAt.php | tests/Stubs/Models/Inverse/EntityWithClosedAt.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Inverse;
use Cog\Flag\Traits\Inverse\HasClosedAt;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
final class EntityWithClosedAt extends Model
{
use HasClosedAt;
use HasFactory;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_closed_at';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Inverse/EntityWithEndedAtApplied.php | tests/Stubs/Models/Inverse/EntityWithEndedAtApplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Inverse;
use Cog\Flag\Traits\Inverse\HasEndedAt;
use Illuminate\Database\Eloquent\Model;
final class EntityWithEndedAtApplied extends Model
{
use HasEndedAt;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_ended_at';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if EndedAtScope should be applied by default.
*
* @return bool
*/
public function shouldApplyEndedAtScope(): bool
{
return true;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Inverse/EntityWithDraftedAtApplied.php | tests/Stubs/Models/Inverse/EntityWithDraftedAtApplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Inverse;
use Cog\Flag\Traits\Inverse\HasDraftedAt;
use Illuminate\Database\Eloquent\Model;
final class EntityWithDraftedAtApplied extends Model
{
use HasDraftedAt;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_drafted_at';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if DraftedAtScope should be applied by default.
*
* @return bool
*/
public function shouldApplyDraftedAtScope(): bool
{
return true;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Inverse/EntityWithExpiredFlagUnapplied.php | tests/Stubs/Models/Inverse/EntityWithExpiredFlagUnapplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Inverse;
use Cog\Flag\Traits\Inverse\HasExpiredFlag;
use Illuminate\Database\Eloquent\Model;
final class EntityWithExpiredFlagUnapplied extends Model
{
use HasExpiredFlag;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_expired_flag';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if ExpiredFlagScope should be applied by default.
*
* @return bool
*/
public function shouldApplyExpiredFlagScope(): bool
{
return false;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Inverse/EntityWithExpiredFlag.php | tests/Stubs/Models/Inverse/EntityWithExpiredFlag.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Inverse;
use Cog\Flag\Traits\Inverse\HasExpiredFlag;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
final class EntityWithExpiredFlag extends Model
{
use HasExpiredFlag;
use HasFactory;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_expired_flag';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Inverse/EntityWithDraftedFlagApplied.php | tests/Stubs/Models/Inverse/EntityWithDraftedFlagApplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Inverse;
use Cog\Flag\Traits\Inverse\HasDraftedFlag;
use Illuminate\Database\Eloquent\Model;
final class EntityWithDraftedFlagApplied extends Model
{
use HasDraftedFlag;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_drafted_flag';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if DraftedFlagScope should be applied by default.
*
* @return bool
*/
public function shouldApplyDraftedFlagScope(): bool
{
return true;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Inverse/EntityWithDraftedAt.php | tests/Stubs/Models/Inverse/EntityWithDraftedAt.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Inverse;
use Cog\Flag\Traits\Inverse\HasDraftedAt;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
final class EntityWithDraftedAt extends Model
{
use HasDraftedAt;
use HasFactory;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_drafted_at';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Inverse/EntityWithArchivedAtUnapplied.php | tests/Stubs/Models/Inverse/EntityWithArchivedAtUnapplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Inverse;
use Cog\Flag\Traits\Inverse\HasArchivedAt;
use Illuminate\Database\Eloquent\Model;
final class EntityWithArchivedAtUnapplied extends Model
{
use HasArchivedAt;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_archived_at';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if ArchivedAtScope should be applied by default.
*
* @return bool
*/
public function shouldApplyArchivedAtScope(): bool
{
return false;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Inverse/EntityWithDraftedFlag.php | tests/Stubs/Models/Inverse/EntityWithDraftedFlag.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Inverse;
use Cog\Flag\Traits\Inverse\HasDraftedFlag;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
final class EntityWithDraftedFlag extends Model
{
use HasDraftedFlag;
use HasFactory;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_drafted_flag';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Inverse/EntityWithEndedFlag.php | tests/Stubs/Models/Inverse/EntityWithEndedFlag.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Inverse;
use Cog\Flag\Traits\Inverse\HasEndedFlag;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
final class EntityWithEndedFlag extends Model
{
use HasEndedFlag;
use HasFactory;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_ended_flag';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Inverse/EntityWithDraftedFlagUnapplied.php | tests/Stubs/Models/Inverse/EntityWithDraftedFlagUnapplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Inverse;
use Cog\Flag\Traits\Inverse\HasDraftedFlag;
use Illuminate\Database\Eloquent\Model;
final class EntityWithDraftedFlagUnapplied extends Model
{
use HasDraftedFlag;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_drafted_flag';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if DraftedFlagScope should be applied by default.
*
* @return bool
*/
public function shouldApplyDraftedFlagScope(): bool
{
return false;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Inverse/EntityWithEndedFlagUnapplied.php | tests/Stubs/Models/Inverse/EntityWithEndedFlagUnapplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Inverse;
use Cog\Flag\Traits\Inverse\HasEndedFlag;
use Illuminate\Database\Eloquent\Model;
final class EntityWithEndedFlagUnapplied extends Model
{
use HasEndedFlag;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_ended_flag';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if EndedFlagScope should be applied by default.
*
* @return bool
*/
public function shouldApplyEndedFlagScope(): bool
{
return false;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Inverse/EntityWithArchivedFlag.php | tests/Stubs/Models/Inverse/EntityWithArchivedFlag.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Inverse;
use Cog\Flag\Traits\Inverse\HasArchivedFlag;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
final class EntityWithArchivedFlag extends Model
{
use HasArchivedFlag;
use HasFactory;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_archived_flag';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Inverse/EntityWithClosedAtApplied.php | tests/Stubs/Models/Inverse/EntityWithClosedAtApplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Inverse;
use Cog\Flag\Traits\Inverse\HasClosedAt;
use Illuminate\Database\Eloquent\Model;
final class EntityWithClosedAtApplied extends Model
{
use HasClosedAt;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_closed_at';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if ClosedAtScope should be applied by default.
*
* @return bool
*/
public function shouldApplyClosedAtScope(): bool
{
return true;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Inverse/EntityWithArchivedAtApplied.php | tests/Stubs/Models/Inverse/EntityWithArchivedAtApplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Inverse;
use Cog\Flag\Traits\Inverse\HasArchivedAt;
use Illuminate\Database\Eloquent\Model;
final class EntityWithArchivedAtApplied extends Model
{
use HasArchivedAt;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_archived_at';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if ArchivedAtScope should be applied by default.
*
* @return bool
*/
public function shouldApplyArchivedAtScope(): bool
{
return true;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Inverse/EntityWithExpiredFlagApplied.php | tests/Stubs/Models/Inverse/EntityWithExpiredFlagApplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Inverse;
use Cog\Flag\Traits\Inverse\HasExpiredFlag;
use Illuminate\Database\Eloquent\Model;
final class EntityWithExpiredFlagApplied extends Model
{
use HasExpiredFlag;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_expired_flag';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if ExpiredFlagScope should be applied by default.
*
* @return bool
*/
public function shouldApplyExpiredFlagScope(): bool
{
return true;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Inverse/EntityWithExpiredAtUnapplied.php | tests/Stubs/Models/Inverse/EntityWithExpiredAtUnapplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Inverse;
use Cog\Flag\Traits\Inverse\HasExpiredAt;
use Illuminate\Database\Eloquent\Model;
final class EntityWithExpiredAtUnapplied extends Model
{
use HasExpiredAt;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_expired_at';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if ExpiredAtScope should be applied by default.
*
* @return bool
*/
public function shouldApplyExpiredAtScope(): bool
{
return false;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Inverse/EntityWithClosedFlagUnapplied.php | tests/Stubs/Models/Inverse/EntityWithClosedFlagUnapplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Inverse;
use Cog\Flag\Traits\Inverse\HasClosedFlag;
use Illuminate\Database\Eloquent\Model;
final class EntityWithClosedFlagUnapplied extends Model
{
use HasClosedFlag;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_closed_flag';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if ClosedFlagScope should be applied by default.
*
* @return bool
*/
public function shouldApplyClosedFlagScope(): bool
{
return false;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Inverse/EntityWithClosedFlagApplied.php | tests/Stubs/Models/Inverse/EntityWithClosedFlagApplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Inverse;
use Cog\Flag\Traits\Inverse\HasClosedFlag;
use Illuminate\Database\Eloquent\Model;
final class EntityWithClosedFlagApplied extends Model
{
use HasClosedFlag;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_closed_flag';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if ClosedFlagScope should be applied by default.
*
* @return bool
*/
public function shouldApplyClosedFlagScope(): bool
{
return true;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Inverse/EntityWithDraftedAtUnapplied.php | tests/Stubs/Models/Inverse/EntityWithDraftedAtUnapplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Inverse;
use Cog\Flag\Traits\Inverse\HasDraftedAt;
use Illuminate\Database\Eloquent\Model;
final class EntityWithDraftedAtUnapplied extends Model
{
use HasDraftedAt;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_drafted_at';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if DraftedAtScope should be applied by default.
*
* @return bool
*/
public function shouldApplyDraftedAtScope(): bool
{
return false;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Inverse/EntityWithClosedFlag.php | tests/Stubs/Models/Inverse/EntityWithClosedFlag.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Inverse;
use Cog\Flag\Traits\Inverse\HasClosedFlag;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
final class EntityWithClosedFlag extends Model
{
use HasClosedFlag;
use HasFactory;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_closed_flag';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Inverse/EntityWithEndedFlagApplied.php | tests/Stubs/Models/Inverse/EntityWithEndedFlagApplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Inverse;
use Cog\Flag\Traits\Inverse\HasEndedFlag;
use Illuminate\Database\Eloquent\Model;
final class EntityWithEndedFlagApplied extends Model
{
use HasEndedFlag;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_ended_flag';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if EndedFlagScope should be applied by default.
*
* @return bool
*/
public function shouldApplyEndedFlagScope(): bool
{
return true;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Inverse/EntityWithArchivedFlagUnapplied.php | tests/Stubs/Models/Inverse/EntityWithArchivedFlagUnapplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Inverse;
use Cog\Flag\Traits\Inverse\HasArchivedFlag;
use Illuminate\Database\Eloquent\Model;
final class EntityWithArchivedFlagUnapplied extends Model
{
use HasArchivedFlag;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_archived_flag';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if ArchivedFlagScope should be applied by default.
*
* @return bool
*/
public function shouldApplyArchivedFlagScope(): bool
{
return false;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Inverse/EntityWithClosedAtUnapplied.php | tests/Stubs/Models/Inverse/EntityWithClosedAtUnapplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Inverse;
use Cog\Flag\Traits\Inverse\HasClosedAt;
use Illuminate\Database\Eloquent\Model;
final class EntityWithClosedAtUnapplied extends Model
{
use HasClosedAt;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_closed_at';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if ClosedAtScope should be applied by default.
*
* @return bool
*/
public function shouldApplyClosedAtScope(): bool
{
return false;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Inverse/EntityWithArchivedFlagApplied.php | tests/Stubs/Models/Inverse/EntityWithArchivedFlagApplied.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Inverse;
use Cog\Flag\Traits\Inverse\HasArchivedFlag;
use Illuminate\Database\Eloquent\Model;
final class EntityWithArchivedFlagApplied extends Model
{
use HasArchivedFlag;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_archived_flag';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Determine if ArchivedFlagScope should be applied by default.
*
* @return bool
*/
public function shouldApplyArchivedFlagScope(): bool
{
return true;
}
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Inverse/EntityWithEndedAt.php | tests/Stubs/Models/Inverse/EntityWithEndedAt.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Inverse;
use Cog\Flag\Traits\Inverse\HasEndedAt;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
final class EntityWithEndedAt extends Model
{
use HasEndedAt;
use HasFactory;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_ended_at';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
cybercog/laravel-eloquent-flag | https://github.com/cybercog/laravel-eloquent-flag/blob/b78de1f45726511b73723b7f017a4a7f833c2546/tests/Stubs/Models/Inverse/EntityWithArchivedAt.php | tests/Stubs/Models/Inverse/EntityWithArchivedAt.php | <?php
/*
* This file is part of Laravel Eloquent Flag.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Tests\Laravel\Flag\Stubs\Models\Inverse;
use Cog\Flag\Traits\Inverse\HasArchivedAt;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
final class EntityWithArchivedAt extends Model
{
use HasArchivedAt;
use HasFactory;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'entity_with_archived_at';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
}
| php | MIT | b78de1f45726511b73723b7f017a4a7f833c2546 | 2026-01-05T05:04:43.856771Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/.php-cs-fixer.php | .php-cs-fixer.php | <?php
//if (PHP_VERSION_ID <= 80001 || PHP_VERSION_ID >= 80100) {
// fwrite(STDERR, '只支持php80');
// exit(1);
//}
$finder = PhpCsFixer\Finder::create()
->exclude('bootstrap') // 忽略这些文件夹
->exclude('public')
->exclude('bin')
->exclude('tmp')
->exclude('docs')
->exclude('storage')
->exclude('vendor')
->exclude('tests')
->in(__DIR__) // 项目根目录路径
;
// 改成你的php版本
$config = new PhpCsFixer\Config();
$config
->setRiskyAllowed(true)
->setRules([
'@PHP80Migration' => true,
'@PHP80Migration:risky' => true,
'@PHPUnit75Migration:risky' => true,
'@PhpCsFixer' => true,
'@PhpCsFixer:risky' => true,
'general_phpdoc_annotation_remove' => ['annotations' => ['expectedDeprecation']],
'modernize_strpos' => true, // needs PHP 8+ or polyfill
'heredoc_indentation' => true,
'declare_strict_types' => false,
])
->setFinder($finder)
->setUsingCache(false);
;
return $config;
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.