{"id":6225,"date":"2021-05-12T12:26:22","date_gmt":"2021-05-12T12:26:22","guid":{"rendered":"https:\/\/www.scmgalaxy.com\/tutorials\/?p=6225"},"modified":"2022-04-13T16:33:33","modified_gmt":"2022-04-13T16:33:33","slug":"general-error-1364-field-phone-doesnt-have-a-default-value","status":"publish","type":"post","link":"https:\/\/www.scmgalaxy.com\/tutorials\/general-error-1364-field-phone-doesnt-have-a-default-value\/","title":{"rendered":"General error: 1364 Field \u2018phone\u2019 doesn\u2019t have a default value"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\" id=\"868c\">SQLSTATE[HY000]: General error: 1364 Field \u2018phone\u2019 doesn\u2019t have a default value (SQL: insert into `products` (`name`, `email`, `address`, `image`, `updated_at`, `created_at`) values (amti,&nbsp;<a href=\"mailto:kuam@gmail.com\">kuam@gmail.com<\/a>, sdafasdf, 642917381.jpg, 2021\u201305\u201311 10:58:35, 2021\u201305\u201311 10:58:35))<\/p>\n\n\n\n<p class=\"wp-block-paragraph\" id=\"79c2\">When I\u2019m submit form then got General error field doesn\u2019t have default value. let\u2019s go to solve this.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\" id=\"179f\">\ud83d\udc49 1 step go to your&nbsp;<a href=\"http:\/\/localhost\/phpmyadmin\/db_structure.php?server=1&amp;db=exam-system\">database<\/a>&nbsp;and put change none&gt;to Null and save.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miro.medium.com\/max\/2444\/1*Zbsljf54T7i52ltaXTUC5g.png\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\" id=\"6ef5\">Lets go to&nbsp;<a href=\"http:\/\/localhost\/phpmyadmin\/tbl_structure.php?db=bootstrap-model&amp;table=products&amp;goto=tbl_structure.php&amp;back=tbl_structure.php&amp;field=name&amp;change_column=1\">phpmyadmin<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miro.medium.com\/max\/1366\/1*YsfnX5FEnXN9iu1bpW1Jjw.png\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\" id=\"6574\">\ud83d\udc49 Click on Structure<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miro.medium.com\/max\/1366\/1*exRlrUyPQlBmv_L_IdBkzg.png\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\" id=\"aad5\">Click on change and change all field to None to Null and save<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miro.medium.com\/max\/1366\/1*5WuhrjZmdV7gF7r3T5Bnpw.png\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\" id=\"034b\">Set Null and click on save button<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miro.medium.com\/max\/1366\/1*mZEfhEoH86McY9ejPgMhcA.png\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\" id=\"a912\">\ud83d\udc41\ud83d\udc41 Now its error has been solved and your data has been stored successfully.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miro.medium.com\/max\/1366\/1*GHQjKJWQAhnhWxHcQSbCwQ.png\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\" id=\"e8d5\">Thanks<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SQLSTATE[HY000]: General error: 1364 Field \u2018phone\u2019 doesn\u2019t have a default value (SQL: insert into `products` (`name`, `email`, `address`, `image`, `updated_at`, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6227,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[5049,156],"tags":[5084,5157,258,2731,5052,4921,5203],"class_list":["post-6225","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel","category-websites","tag-crud-operation-in-laravel","tag-database","tag-error","tag-general","tag-laravel","tag-localhost","tag-xampp"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>General error: 1364 Field \u2018phone\u2019 doesn\u2019t have a default value - scmGalaxy<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.scmgalaxy.com\/tutorials\/general-error-1364-field-phone-doesnt-have-a-default-value\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"General error: 1364 Field \u2018phone\u2019 doesn\u2019t have a default value - scmGalaxy\" \/>\n<meta property=\"og:description\" content=\"SQLSTATE[HY000]: General error: 1364 Field \u2018phone\u2019 doesn\u2019t have a default value (SQL: insert into `products` (`name`, `email`, `address`, `image`, `updated_at`, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/general-error-1364-field-phone-doesnt-have-a-default-value\/\" \/>\n<meta property=\"og:site_name\" content=\"scmGalaxy\" \/>\n<meta property=\"article:published_time\" content=\"2021-05-12T12:26:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-04-13T16:33:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/general-error.png\" \/>\n\t<meta property=\"og:image:width\" content=\"600\" \/>\n\t<meta property=\"og:image:height\" content=\"315\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"rajeshkumar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"rajeshkumar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/general-error-1364-field-phone-doesnt-have-a-default-value\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/general-error-1364-field-phone-doesnt-have-a-default-value\\\/\"},\"author\":{\"name\":\"rajeshkumar\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/a40e0dd38feee7c2779460a804d49361\"},\"headline\":\"General error: 1364 Field \u2018phone\u2019 doesn\u2019t have a default value\",\"datePublished\":\"2021-05-12T12:26:22+00:00\",\"dateModified\":\"2022-04-13T16:33:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/general-error-1364-field-phone-doesnt-have-a-default-value\\\/\"},\"wordCount\":121,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/general-error-1364-field-phone-doesnt-have-a-default-value\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/general-error.png\",\"keywords\":[\"crud operation in laravel\",\"database\",\"error\",\"General\",\"laravel\",\"localhost\",\"xampp\"],\"articleSection\":[\"Laravel\",\"Websites\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/general-error-1364-field-phone-doesnt-have-a-default-value\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/general-error-1364-field-phone-doesnt-have-a-default-value\\\/\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/general-error-1364-field-phone-doesnt-have-a-default-value\\\/\",\"name\":\"General error: 1364 Field \u2018phone\u2019 doesn\u2019t have a default value - scmGalaxy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/general-error-1364-field-phone-doesnt-have-a-default-value\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/general-error-1364-field-phone-doesnt-have-a-default-value\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/general-error.png\",\"datePublished\":\"2021-05-12T12:26:22+00:00\",\"dateModified\":\"2022-04-13T16:33:33+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/a40e0dd38feee7c2779460a804d49361\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/general-error-1364-field-phone-doesnt-have-a-default-value\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/general-error-1364-field-phone-doesnt-have-a-default-value\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/general-error-1364-field-phone-doesnt-have-a-default-value\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/general-error.png\",\"contentUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/general-error.png\",\"width\":600,\"height\":315},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/general-error-1364-field-phone-doesnt-have-a-default-value\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"General error: 1364 Field \u2018phone\u2019 doesn\u2019t have a default value\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\",\"name\":\"scmGalaxy\",\"description\":\"A Platform for Software Engineers\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/a40e0dd38feee7c2779460a804d49361\",\"name\":\"rajeshkumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g\",\"caption\":\"rajeshkumar\"},\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/author\\\/rajeshkumar\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"General error: 1364 Field \u2018phone\u2019 doesn\u2019t have a default value - scmGalaxy","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.scmgalaxy.com\/tutorials\/general-error-1364-field-phone-doesnt-have-a-default-value\/","og_locale":"en_US","og_type":"article","og_title":"General error: 1364 Field \u2018phone\u2019 doesn\u2019t have a default value - scmGalaxy","og_description":"SQLSTATE[HY000]: General error: 1364 Field \u2018phone\u2019 doesn\u2019t have a default value (SQL: insert into `products` (`name`, `email`, `address`, `image`, `updated_at`, [&hellip;]","og_url":"https:\/\/www.scmgalaxy.com\/tutorials\/general-error-1364-field-phone-doesnt-have-a-default-value\/","og_site_name":"scmGalaxy","article_published_time":"2021-05-12T12:26:22+00:00","article_modified_time":"2022-04-13T16:33:33+00:00","og_image":[{"width":600,"height":315,"url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/general-error.png","type":"image\/png"}],"author":"rajeshkumar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"rajeshkumar","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/general-error-1364-field-phone-doesnt-have-a-default-value\/#article","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/general-error-1364-field-phone-doesnt-have-a-default-value\/"},"author":{"name":"rajeshkumar","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/a40e0dd38feee7c2779460a804d49361"},"headline":"General error: 1364 Field \u2018phone\u2019 doesn\u2019t have a default value","datePublished":"2021-05-12T12:26:22+00:00","dateModified":"2022-04-13T16:33:33+00:00","mainEntityOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/general-error-1364-field-phone-doesnt-have-a-default-value\/"},"wordCount":121,"commentCount":0,"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/general-error-1364-field-phone-doesnt-have-a-default-value\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/general-error.png","keywords":["crud operation in laravel","database","error","General","laravel","localhost","xampp"],"articleSection":["Laravel","Websites"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.scmgalaxy.com\/tutorials\/general-error-1364-field-phone-doesnt-have-a-default-value\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/general-error-1364-field-phone-doesnt-have-a-default-value\/","url":"https:\/\/www.scmgalaxy.com\/tutorials\/general-error-1364-field-phone-doesnt-have-a-default-value\/","name":"General error: 1364 Field \u2018phone\u2019 doesn\u2019t have a default value - scmGalaxy","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/general-error-1364-field-phone-doesnt-have-a-default-value\/#primaryimage"},"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/general-error-1364-field-phone-doesnt-have-a-default-value\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/general-error.png","datePublished":"2021-05-12T12:26:22+00:00","dateModified":"2022-04-13T16:33:33+00:00","author":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/a40e0dd38feee7c2779460a804d49361"},"breadcrumb":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/general-error-1364-field-phone-doesnt-have-a-default-value\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.scmgalaxy.com\/tutorials\/general-error-1364-field-phone-doesnt-have-a-default-value\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/general-error-1364-field-phone-doesnt-have-a-default-value\/#primaryimage","url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/general-error.png","contentUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/general-error.png","width":600,"height":315},{"@type":"BreadcrumbList","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/general-error-1364-field-phone-doesnt-have-a-default-value\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.scmgalaxy.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"General error: 1364 Field \u2018phone\u2019 doesn\u2019t have a default value"}]},{"@type":"WebSite","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website","url":"https:\/\/www.scmgalaxy.com\/tutorials\/","name":"scmGalaxy","description":"A Platform for Software Engineers","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.scmgalaxy.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/a40e0dd38feee7c2779460a804d49361","name":"rajeshkumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g","caption":"rajeshkumar"},"url":"https:\/\/www.scmgalaxy.com\/tutorials\/author\/rajeshkumar\/"}]}},"_links":{"self":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/6225","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/comments?post=6225"}],"version-history":[{"count":2,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/6225\/revisions"}],"predecessor-version":[{"id":6229,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/6225\/revisions\/6229"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media\/6227"}],"wp:attachment":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media?parent=6225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/categories?post=6225"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/tags?post=6225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}