add comment to factories

This commit is contained in:
2025-07-23 09:51:30 +03:30
parent bc31ce9e37
commit 9af2c7c7d7
6 changed files with 34 additions and 3 deletions

View File

@@ -17,6 +17,7 @@ class CountryCallsReportFactory extends Factory
*/
public function definition(): array
{
// $this->faker->randomElement(Province::all()->pluck('id')->toArray())
return [
'province_id' => Province::factory(),
'province_name' => function (array $attributes) {

View File

@@ -17,6 +17,7 @@ class CountryKeypressReportFactory extends Factory
*/
public function definition(): array
{
// $this->faker->randomElement(Province::all()->pluck('id')->toArray())
return [
'province_id' => Province::factory(),
'province_name' => function (array $attributes) {

View File

@@ -17,6 +17,7 @@ class CountryMessageRatingReportFactory extends Factory
*/
public function definition(): array
{
// $this->faker->randomElement(Province::all()->pluck('id')->toArray())
return [
'province_id' => Province::factory(),
'province_name' => function (array $attributes) {

View File

@@ -17,6 +17,7 @@ class CountryVoiceRatingReportFactory extends Factory
*/
public function definition(): array
{
// $this->faker->randomElement(Province::all()->pluck('id')->toArray())
return [
'province_id' => Province::factory(),
'province_name' => function (array $attributes) {

View File

@@ -11,9 +11,9 @@ return new class extends Migration
*/
public function up(): void
{
Schema::create('provinces', function (Blueprint $table) {
$table->string('ip');
$table->string('camera_ip');
Schema::table('provinces', function (Blueprint $table) {
$table->string('ip')->nullable();
$table->string('camera_ip')->nullable();
});
}

View File

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