add comment to factories
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user