laravel5.4¹ýʧÐÅÏ¢ÌáÐÑ
laravel5.4ÊÇÒ»¿îÊ¢ÐеÄphp¿ò¼Ü£¬ËüÌṩÁËÐí¶àÇ¿Ê¢µÄ¹¦Ð§ºÍ¹¤¾ß£¬Ê¹¿ª·¢Ö°Ô±¿ÉÒÔ¿ìËÙÇáËɵع¹½¨¸ßÖÊÁ¿µÄwebÓ¦ÓóÌÐò¡£È»¶ø£¬ÔÚ¿ª·¢Àú³ÌÖУ¬ÎÒÃDz»¿É×èÖ¹µØ»áÓöµ½Ò»Ð©¹ýʧ¡£ÔÚÕâƪÎÄÕÂÖУ¬ÎÒÃǽ«Ì½ÌÖlaravel5.4Öг£¼ûµÄ¹ýʧÐÅÏ¢ÌáÐÑ£¬ÒÔ¼°ÔõÑù½â¾öËüÃÇ¡£
NotFoundHttpException
ÕâÊÇLaravel5.4ÖÐ×î³£¼ûµÄ¹ýʧ֮һ¡£ËüÌåÏÖÎÞ·¨ÕÒµ½ËùÇëÇóµÄÒ³Ãæ»ò·ÓÉ¡£·ºÆð´Ë¹ýʧµÄÔµ¹ÊÔÓÉ¿ÉÄÜ°üÀ¨£º
¹ýʧµÄURL»ò·ÓÉÃû³Æ
·ÓÉδ½ç˵»òδע²á
δ½ç˵GET»òPOSTÇëÇó·½·¨
δÔÚ¿ØÖÆÆ÷Öнç˵ÏìÓ¦µÄÒªÁì
½â¾öÒªÁ죺
¼ì²éURL»ò·ÓÉÃû³ÆÊÇ·ñ׼ȷ
È·±£Â·ÓÉÒѽç˵ºÍ×¢²á£¬²¢ÇÒʹÓÃÁË׼ȷµÄÇëÇó·½·¨£¨GET»òPOST£©
ÔÚ¿ØÖÆÆ÷Öнç˵Êʵ±µÄÒªÁì
MethodNotAllowedHttpException
ÕâÊÇÁíÒ»¸ö³£¼ûµÄ¹ýʧ£¬ËüÌåÏÖʹÓÃÁ˹ýʧµÄÇëÇóÒªÁì¡£·ºÆð´Ë¹ýʧµÄÔµ¹ÊÔÓÉ¿ÉÄÜ°üÀ¨£º
¹ýʧµÄÇëÇóÒªÁì
·ÓÉδ½ç˵ËùʹÓõÄÇëÇóÒªÁì
½â¾öÒªÁ죺
È·±£Ê¹ÓÃ׼ȷµÄÇëÇóÒªÁ죨GET£¬POST£¬PUT»òDELETE£©
È·±£Â·ÓÉÒѽç˵ËùʹÓõÄÇëÇóÒªÁì
InvalidArgumentException
´Ë¹ýʧÌåÏÖת´ï¸øº¯Êý»òÒªÁìµÄ²ÎÊýÎÞЧ¡£·ºÆð´Ë¹ýʧµÄÔµ¹ÊÔÓÉ¿ÉÄÜ°üÀ¨£º
ת´ï¹ýʧµÄ²ÎÊýÀàÐÍ»òÃûÌÃ
δת´ïËùÐèµÄ²ÎÊý
½â¾öÒªÁ죺
È·±£×ª´ï׼ȷµÄ²ÎÊýÀàÐͺÍÃûÌÃ
È·±£×ª´ïËùÓбØÐèµÄ²ÎÊý
QueryException
ÕâÊÇÒ»¸öÊý¾Ý¿âÒì³££¬ÌåÏÖÔÚÖ´ÐÐÊý¾Ý¿âÅÌÎÊʱ±¬·¢Á˹ýʧ¡£·ºÆð´Ë¹ýʧµÄÔµ¹ÊÔÓÉ¿ÉÄÜ°üÀ¨£º
ÎÞЧµÄSQLÅÌÎÊÓï¾ä
Êý¾Ý¿âÅþÁ¬Ê§°Ü
Êý¾Ý¿â±í»òÁв»±£´æ
Êý¾Ý¿â²Ù×÷ȨÏÞȱ·¦
½â¾öÒªÁ죺
¼ì²éSQLÅÌÎÊÓï¾äÊÇ·ñ׼ȷ
È·±£Êý¾Ý¿âÅþÁ¬Õý³£
È·±£²Ù×÷µÄÊý¾Ý¿â±íºÍÁб£´æ
¼ì²éÊý¾Ý²Ù×÷ȨÏÞÊÇ·ñ×ã¹»
TokenMismatchException
´Ë¹ýʧÌåÏÖLaravel5.4csrfÁîÅƼì²éʧ°Ü¡£·ºÆð´Ë¹ýʧµÄÔµ¹ÊÔÓÉ¿ÉÄÜ°üÀ¨£º
ÇëÇóÌá½»µÄ±íµ¥ÖÐδ°üÀ¨csrfÁîÅÆ
csrfÁîÅÆÒÑÓâÆÚ»òÎÞЧ
½â¾öÒªÁ죺
È·±£ÔÚÌá½»µÄ±íµ¥ÖаüÀ¨ÓÐÓõÄcsrfÁîÅÆ
È·±£ÁîÅÆûÓÐÓâÆÚ»òÎÞЧ
×ܽá
ÔÚLaravel5.4Ó¦ÓóÌÐò¿ª·¢Àú³ÌÖУ¬ÎÒÃÇ¿ÉÄÜ»áÓöµ½ÖÖÖÖ¸÷ÑùµÄ¹ýʧ¡£Ã÷È·ÕâЩ¹ýʧµÄÔµ¹ÊÔÓÉÒÔ¼°ÔõÑù½â¾öËüÃǺÜÊÇÖ÷Òª¡£±¾ÎÄö¾ÙÁËһЩ³£¼ûµÄ¹ýʧÐÅÏ¢ÌáÐÑÒÔ¼°ÏìÓ¦µÄ½â¾öÒªÁ죬ϣÍûÄÜ×ÊÖúÄú¸üºÃµØ½â¾öÎÊÌ⣬Ìá¸ß¿ª·¢Ð§ÂÊ¡£
ÒÔÉϾÍÊÇlaravel5.4¹ýʧÐÅÏ¢ÌáÐѵÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡