ÌÖÂÛLaravelµÄһЩ³£ÓõÄÅäºÏ¹¤¾ßºÍ¿â
laravelÊÇÒ»¸ö¿ªÔ´µÄphp webÓ¦ÓóÌÐò¿ò¼Ü£¬ËüʹÓÃÁËÐí¶àÏÖ´ú»¯µÄ±à³ÌÍ·ÄÔºÍÊÖÒÕ£¬Ê¹µÃ¹¹½¨¸ßЧ¡¢Îȹ̺ÍÇå¾²µÄwebÓ¦ÓóÌÐò±äµÃÔ½·¢ÈÝÒ׺Ϳì½Ý¡£È»¶ø£¬¹ØÓÚ´ó´ó¶¼¿ª·¢Ö°Ô±À´Ëµ£¬Ê¹ÓÃlaravelÖ»ÊÇÒ»¸ö³õʼ°ì·¨£¬Ò»¸öÀÖ³ÉÍê³ÉµÄÏîÄ¿ÐèÒª¶àÖÖ¸¨Öú¹¤¾ßºÍ¿âÀ´ÅäºÏʹÓᣱ¾ÎĽ«ÌÖÂÛlaravelµÄһЩ³£ÓõÄÅäºÏ¹¤¾ßºÍ¿â£¬ÒÔ×ÊÖú¶ÁÕ߸üºÃµØ¹¹½¨laravelÓ¦ÓóÌÐò¡£
Composer
ComposerÊÇPHP×îÊ¢ÐеÄÒÀÀµÖÎÀíÆ÷£¬Ëüͨ¹ýÒ»¸öJSONÉèÖÃÎļþÖ¸¶¨Ã¿¸öÏîÄ¿µÄÒÀÀµ¹Øϵ¡£ÎªÁ˸üºÃµØά»¤ºÍÖÎÀíLaravelÏîÄ¿µÄÒÀÀµ¹Øϵ£¬ComposerÊDZز»¿ÉÉٵġ£×îаæµÄLaravel¿ò¼ÜÒѾ¼¯³ÉÁËComposer£¬Ê¹µÃʹÓÃComposerÔ½·¢Àû±ã¡£
Eloquent ORM
EloquentÊÇLaravel¿ò¼Ü×Ô´øµÄÒ»¸öÇ¿Ê¢µÄORM¿â£¬ËüÌṩÁËÒ»Ì×¼òÆÓÒ×ÓõÄAPI£¬Ê¹µÃÊý¾Ý´¦Öóͷ£±äµÃÔ½·¢ÇáËɺͱã½Ý¡£Eloquent»ùÓÚActive Recordģʽ£¬¿ÉÒÔºÜÊÇÀû±ãµØ½ç˵Êý¾Ý¿â±í²¢¾ÙÐÐCRUD²Ù×÷¡£Ê¹ÓÃEloquent¿ÉÒÔÌá¸ß¿ª·¢Ð§ÂÊ£¬ïÔÌ´úÂëÁ¿£¬×èÖ¹Ö±½Ó´¦Öóͷ£SQLµÄ·±ËöÊÂÇé¡£
BladeÄ£°åÒýÇæ
BladeÊÇLaravel¿ò¼Ü×Ô´øµÄÒ»¸öäÖȾÒýÇ棬ËüÌṩÁËÒ»Ì׺ÜÊǼòÆÓµÄÓï·¨À´½¨ÉèÊÓͼ£¬²¢Ö§³Ö½á¹¹¡¢¼ÌÐø¡¢Ñ»·µÈ¸ß¼¶¹¦Ð§¡£BladeÒýÇæÒ²Ò×ÓÚʹÓ㬲¢¿ÉÒԺܺõØÓëPHP´úÂ뼯³É¡£Ê¹ÓÃBlade¿ÉÒÔ½«ÊÓͼºÍÓªÒµÂß¼ÊèÉ¢£¬´Ó¶øÌá¸ß´úÂëµÄ¿ÉÖØÓÃÐԺͿÉά»¤ÐÔ£¬²¢½µµÍÁË´úÂëµÄÖØƯºó¡£
PHPUnit
ÔÚLaravelÓ¦ÓóÌÐòÖоÙÐе¥Î»²âÊÔÊDZز»¿ÉÉٵģ¬PHPUnitÊÇPHP×îÊ¢Ðеĵ¥Î»²âÊÔ¿ò¼ÜÖ®Ò»¡£Laravel¿ò¼ÜÒѾ¼¯³ÉÁËPHPUnit£¬Ê¹µÃÔÚLaravelÏîÄ¿ÖоÙÐе¥Î»²âÊÔÔ½·¢Àû±ã¡£Ê¹ÓÃPHPUnit¿ÉÒÔ×ÊÖú¿ª·¢Ö°Ô±ÔÚ´úÂë±ä»»ÒÔºó¿ìËٵؼì²éϵͳÊÇ·ñ»¹ÄÜÕý³£ÊÂÇ飬²¢È·±£´úÂëµÄÖÊÁ¿ºÍÎȹÌÐÔ¡£
Redis
RedisÊÇÒ»¸öÄÚ´æ¼üÖµÊý¾Ý¿â£¬ËüÌṩÁ˸ßÐÔÄÜ¡¢¿ÉÀ©Õ¹ºÍÎÞаµÄÊý¾Ý´æ´¢¡£ÔÚLaravelÓ¦ÓóÌÐòÖУ¬Redis¿ÉÒÔÓÃÓÚ»º´æ¡¢Ê¹ÃüÐÐÁС¢¼ÆÊýÆ÷¡¢ÐÂÎÅÐû²¼/¶©Ôĵȷ½Ãæ¡£LaravelÒѾԤװÁËRedisЧÀͶˣ¬¿ÉÒÔÇáËɵØÓëÓ¦ÓóÌÐò¼¯³É¡£
GuzzleHTTP
GuzzleHTTPÊÇPHP×îÊ¢ÐеÄHTTP¿Í»§¶ËÖ®Ò»£¬ËüÌṩÁËÒ»Ì×¼òÆÓÒ×ÓõÄAPIÀ´´¦Öóͷ£HTTPÇëÇóºÍÏìÓ¦¡£ÔÚLaravelÓ¦ÓóÌÐòÖУ¬GuzzleHTTP¿ÉÒÔÓÃÓÚ·¢ËÍHTTPÇëÇó¡¢´¦Öóͷ£REST APIÏìÓ¦µÈ·½Ãæ¡£GuzzleHTTP»¹Ö§³Ö²¢·¢ÇëÇóºÍÇëÇóÐÐÁУ¬ÒÔÌá¸ßÐÔÄܲ¢ïÔÌÏìӦʱ¼ä¡£
Socialite
SocialiteÊÇLaravel¿ò¼Ü×Ô´øµÄÉ罻ýÌåÉí·ÝÑéÖ¤¿â£¬ËüÌṩÁËÒ»Ì×Àû±ãµÄAPIÀ´´¦Öóͷ£µÚÈý·½µÇ¼¡£ÔÚLaravelÓ¦ÓóÌÐòÖУ¬Socialite¿ÉÒÔÓÃÓÚÓëFacebook¡¢Twitter¡¢GoogleµÈÉ罻ýÌåÍøÕ¾¼¯³É£¬²¢Ê¹Óû§¿ÉÒÔÇáËɵØͨ¹ýÕâЩÍøÕ¾¾ÙÐеǼ¡£SocialiteµÄ¼òÆÓÒ×ÓýӿڿÉÒÔÏÔÖø½µµÍ¿ª·¢Ö°Ô±µÄÊÂÇéÁ¿£¬²¢Ìá¸ßÓ¦ÓóÌÐòµÄÓû§ÓѺÃÐÔ¡£
Vue.js
Vue.jsÊÇÒ»¸öÊ¢ÐеÄÇ°¶ËJavaScript¿ò¼Ü£¬Ëü¿ÉÒÔÓÃÓÚ¹¹½¨¿ÉÖØÓúͿÉÀ©Õ¹µÄWeb×é¼þ¡£ÔÚLaravelÓ¦ÓóÌÐòÖУ¬Vue.js¿ÉÒÔÓëBladeÄ£°åÒýÇæºÍEloquent ORMÅäºÏʹÓ㬴ӶøʵÏÖÔ½·¢ÁìÏȵĵ¥Ò³Ó¦ÓóÌÐò¡£Vue.js¿ÉÒÔ´ó·ùïÔÌÖظ´´úÂëºÍÄ£¿é»¯ÏµÍ³£¬ÔöÌí´úÂë¿É¶ÁÐԺͿÉά»¤ÐÔ¡£
×ܽá
Laravel×÷Ϊһ¸öÊ¢ÐеÄPHP WebÓ¦ÓóÌÐò¿ò¼Ü£¬ÆäÇ¿Ê¢µÄ¹¦Ð§²»µ«ÐèÒª»ù´¡µÄPHP±à³Ì֪ʶ£¬»¹ÐèÒªÆäËû¹¤¾ßºÍ¿âµÄÅäºÏ£¬ÒÔʵÏÖ¸ü¸ßЧ¡¢Îȹ̡¢Çå¾²ºÍÓѺõÄWebÓ¦ÓóÌÐò¡£ÔÚ±¾ÎÄÖУ¬ÎÒÃÇÏÈÈÝÁËһЩ³£ÓõÄLaravel¹¤¾ßºÍ¿â£¬°üÀ¨Composer¡¢Eloquent ORM¡¢BladeÄ£°åÒýÇæ¡¢PHPUnit¡¢Redis¡¢GuzzleHTTP¡¢SocialiteºÍVue.jsµÈ¡£ÐÅÍÐÕÆÎÕÕâЩ¹¤¾ßºÍ¿âµÄ֪ʶ£¬¿ÉÒÔ×ÊÖú¿ª·¢Ö°Ô±¸üºÃµØ¹¹½¨LaravelÓ¦ÓóÌÐò£¬²¢Ìá¸ß¿ª·¢Ð§ÂÊ¡£
ÒÔÉϾÍÊÇÌÖÂÛLaravelµÄһЩ³£ÓõÄÅäºÏ¹¤¾ßºÍ¿âµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡