Git Product home page Git Product logo

laramint's Issues

Departments Issue

Describe the bug
Department Showing Error

To Reproduce
Go Frontend as a Fresh Install

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Problem in seeder for configuration factory

Describe the bug
Migration is ok but when running the seed then there is a problem for the configuration seed

Creating migration table ................................. 78.31ms DONE

   INFO  Running migrations.  

  2014_10_12_000000_create_users_table .................... 116.79ms DONE
  2014_10_12_100000_create_password_resets_table ........... 83.73ms DONE
  2014_10_12_200000_add_two_factor_columns_to_users_table .. 48.34ms DONE
  2018_08_08_100000_create_telescope_entries_table ........ 523.48ms DONE
  2019_08_19_000000_create_failed_jobs_table ............... 97.95ms DONE
  2019_12_14_000001_create_personal_access_tokens_table ... 126.91ms DONE
  2021_12_15_075303_create_permission_tables ............ 1,066.03ms DONE
  2021_12_15_101230_create_departments_table ............... 39.80ms DONE
  2021_12_18_072155_create_courses_table .................. 154.74ms DONE
  2021_12_19_083110_create_terms_table .................... 258.17ms DONE
  2021_12_19_084538_alter_table_terms_change_nullable_is_published  167.59ms DONE
  2021_12_19_121408_create_sessions_table .................. 42.97ms DONE
  2021_12_24_132324_create_files_table ..................... 56.53ms DONE
  2021_12_25_105212_create_documents_table ................. 40.54ms DONE
  2021_12_26_122323_create_table_document_file_2021_12_26 . 275.72ms DONE
  2021_12_30_141335_creates_sessionables_table ............ 205.30ms DONE
  2022_01_09_131643_create_quizzes_table ................... 50.03ms DONE
  2022_01_11_140143_create_question_types_table ............ 46.11ms DONE
  2022_01_11_192351_create_questions_table ................ 153.78ms DONE
  2022_01_15_160725_create_table_quiz_question_2022_01_15 . 298.27ms DONE
  2022_01_16_185858_create_rubrics_table ................... 50.50ms DONE
  2022_01_17_145712_create_feedback_table .................. 45.47ms DONE
  2022_01_17_153433_question_feedback ..................... 276.46ms DONE
  2022_01_18_215510_create_activity_log_table ............. 171.47ms DONE
  2022_01_18_215511_add_event_column_to_activity_log_table . 47.68ms DONE
  2022_01_18_215512_add_batch_uuid_column_to_activity_log_table  44.01ms DONE
  2022_02_13_084136_create_term_user_table ................ 420.44ms DONE
  2022_02_15_062851_create_session_term_table ............. 270.20ms DONE
  2022_02_28_110152_create_plans_table ..................... 47.87ms DONE
  2022_03_30_140750_create_jobs_table ...................... 92.43ms DONE
  2022_04_03_120301_create_workouts_table ................. 278.20ms DONE
  2022_04_03_121316_create_workout_quiz_logs_table ........ 436.08ms DONE
  2022_04_30_080939_create_mentor_comments_table .......... 355.69ms DONE
  2022_05_08_094601_create_notifications_table ............ 159.46ms DONE
  2022_05_08_125755_create_configurations_table ............ 43.45ms DONE
  2022_05_25_121600_create_badges_table .................... 53.10ms DONE
  2022_06_11_124636_create_coins_logs_table ............... 190.80ms DONE

   INFO  Seeding database.  

  Database\Seeders\PermissionsSeeder .................... 4,514.47ms DONE
  Database\Seeders\DepartmentSeed .......................... 33.91ms DONE
  Database\Seeders\CourseSeed ............................. 365.42ms DONE
  Database\Seeders\TermSeed ............................... 242.31ms DONE
  Database\Seeders\SessionSeed .......................... 1,091.64ms DONE
  Database\Seeders\DocumentSeed ........................... 210.22ms DONE
  Database\Seeders\RubricSeed .............................. 44.33ms DONE
  Database\Seeders\QuestionType ............................ 60.96ms DONE
  Database\Seeders\QuizSeed ............................... 440.81ms DONE
  Database\Seeders\QuestionSeed ........................... 560.98ms DONE
  Database\Seeders\ParticipantSeeder ...................... 653.17ms DONE
  Database\Seeders\PlanSeeder .............................. 36.09ms DONE
  Database\Seeders\ConfigurationSeed ........................ 4.18ms FAIL

Illuminate\Database\QueryException

SQLSTATE[22032]: <>: 3140 Invalid JSON text: "Invalid value." at position 0 in value for column 'configurations.config_value'. (SQL: insert into configurations (config_type, config_value, config_category, updated_at, created_at) values (SiteName, Laramint LMS, global, 2022-10-31 09:14:50, 2022-10-31 09:14:50))

Model
**```
\App\Models\Configuration::factory()->create([
'config_type' => 'SiteName',
'config_value' => json_encode('Laramint LMS'),
'config_category' => 'global'
]);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.