add more fields for azmayeshes
This commit is contained in:
@@ -74,7 +74,7 @@ class AzmayeshSampleController extends Controller
|
||||
$azmayeshSample->update([
|
||||
'azmayesh_id' => $azmayesh->id,
|
||||
'azmayesh_project_name' => $azmayesh->project_name,
|
||||
'data' => json_encode($request->data),
|
||||
'data' => $request->data,
|
||||
]);
|
||||
|
||||
return $this->successResponse();
|
||||
|
||||
@@ -17,7 +17,7 @@ class AzmayeshFieldSeeder extends Seeder
|
||||
[
|
||||
'id' => 1,
|
||||
'name' => 'طول',
|
||||
'unit' => 'سانتی متر',
|
||||
'unit' => 'cm',
|
||||
'type' => 'input',
|
||||
'option' => null,
|
||||
'created_at' => now(),
|
||||
@@ -26,7 +26,7 @@ class AzmayeshFieldSeeder extends Seeder
|
||||
[
|
||||
'id' => 2,
|
||||
'name' => 'عرض',
|
||||
'unit' => 'سانتی متر',
|
||||
'unit' => 'cm',
|
||||
'type' => 'input',
|
||||
'option' => null,
|
||||
'created_at' => now(),
|
||||
@@ -50,6 +50,69 @@ class AzmayeshFieldSeeder extends Seeder
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
],
|
||||
[
|
||||
'id' => 5,
|
||||
'name' => 'ضخامت',
|
||||
'unit' => 'cm',
|
||||
'type' => 'input',
|
||||
'option' => null,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
],
|
||||
[
|
||||
'id' => 6,
|
||||
'name' => 'نوع لایه',
|
||||
'unit' => '-',
|
||||
'type' => 'select',
|
||||
'option' => json_encode(['اساس']),
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
],
|
||||
[
|
||||
'id' => 7,
|
||||
'name' => 'مشخصات تراکم نسبی',
|
||||
'unit' => 'percent',
|
||||
'type' => 'input',
|
||||
'option' => null,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
],
|
||||
[
|
||||
'id' => 8,
|
||||
'name' => 'نیروی تصحیح شده',
|
||||
'unit' => 'kg',
|
||||
'type' => 'input',
|
||||
'option' => null,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
],
|
||||
[
|
||||
'id' => 9,
|
||||
'name' => 'مقاومت فشاری آزمونه',
|
||||
'unit' => 'kg/cm2',
|
||||
'type' => 'input',
|
||||
'option' => null,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
],
|
||||
[
|
||||
'id' => 10,
|
||||
'name' => 'مقاومت فشاری آزمونه استوانه ای متناظر',
|
||||
'unit' => 'kg/cm2',
|
||||
'type' => 'input',
|
||||
'option' => null,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
],
|
||||
[
|
||||
'id' => 11,
|
||||
'name' => 'مقاومت فشاری آزمونه استوانه ای متناظر',
|
||||
'unit' => 'kg/cm2',
|
||||
'type' => 'input',
|
||||
'option' => null,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,7 +53,6 @@ class FieldsTest extends TestCase
|
||||
$response->assertJsonStructure([
|
||||
'data' => [
|
||||
'*' => [
|
||||
'name',
|
||||
'name',
|
||||
'unit',
|
||||
'type',
|
||||
|
||||
Reference in New Issue
Block a user