尊龙凯时人生就是搏

laravelÖÐÎÄÂÒÂë

×î½üʹÓÃlaravel¿ª·¢Íøվʱ £¬Óöµ½ÁËһЩÖÐÎÄÂÒÂëµÄÎÊÌâ¡£¾­ÓÉÊÓ²ìºÍÑо¿ £¬ÎÒÕûÀíÁËһЩ½â¾öÎÊÌâµÄÒªÁì £¬Ï£Íû¶Ô¸÷ÈËÓÐËù×ÊÖú¡£

ÎÊÌ⣺ÖÐÎÄ×Ö·ûÔÚÍøÒ³ÖÐÏÔʾÂÒÂë

Ôì³ÉÖÐÎÄÂÒÂëµÄÔµ¹ÊÔ­ÓÉÒ»Ñùƽ³£ÓÐÁ½ÖÖ£ºÒ»ÊDZàÂë²î±ðµ¼Ö嵀 £¬¶þÊÇ×Ö·û¼¯·×ÆçÖµ¼ÖµÄ¡£

½â¾öÒªÁì1£º¼ì²éÎļþ±àÂë

LaravelÖеÄÎļþ±àÂëÒ»Ñùƽ³£ÊÇUTF-8 £¬ÒÔÊÇÎÒÃÇҪȷ±£ÎļþµÄ±àÂë׼ȷ¡£ÔÚ¿ª·¢ÇéÐÎÖÐ £¬¿ÉÒÔʹÓÃÎı¾±à¼­Æ÷£¨ÈçSublime Text£©Éó²éÎļþ±àÂëÀàÐÍ¡£·­¿ªÎı¾±à¼­Æ÷ £¬Ð½¨Ò»¸öÎļþ £¬°ÑÎļþ±àÂëÉèÖóÉUTF-8ºóÉúÑÄ £¬È»ºó°ÑÎļþÍϵ½±à¼­Æ÷ÖÐÉó²é £¬ÈôÊÇÎļþµÄ±àÂëÏÔʾµÄÊÇUTF-8 £¬¾Í˵Ã÷Îļþ±àÂëÊÇ׼ȷµÄ¡£

ÈôÊÇÎļþ±àÂ벻׼ȷ £¬¿ÉÒÔ˼Á¿¸Ä±ä±à¼­Æ÷µÄĬÈϱàÂë»òÕßʹÓÃÆäËû±à¼­Æ÷¡£

½â¾öÒªÁì2£ºÔÚÍøÒ³ÖÐÉèÖÃ×Ö·û¼¯

ÈôÊÇÄãµÄÍøÒ³ÖзºÆðÁËÖÐÎÄÂÒÂë £¬¿ÉÒÔͨ¹ýÔÚHTMLÖÐÉèÖÃ×Ö·û¼¯À´½â¾öÎÊÌâ¡£ÔÚHTMLÖмÓÈëÒÔÏ´úÂ룺

<meta charset="utf-8">

µÇ¼ºó¸´ÖÆ

ÕâÀïµÄutf-8ÊÇʹÓÃ×îÆÕ±éµÄ×Ö·û±àÂë £¬ÈôÊÇÄãʹÓõÄÊÇÆäËû×Ö·û±àÂë £¬¾ÍÐèÒªÏìÓ¦µØÐÞ¸Ämeta±êÇ©ÖеıàÂëÀàÐÍ¡£

ͨ³£ £¬Ó¦¸Ã½«´Ë´úÂë·ÅÔÚHTMLÎļþµÄÍ·²¿¡£ÈôÊÇÄãʹÓõÄÊÇLaravelµÄBladeÄ£°åÒýÇæ £¬¿ÉÒÔÔÚlayouts/app.blade.phpÖмÓÈëÒÔÏ´úÂ룺



    <meta charset="utf-8">
    @yield('title')
    
  
    @yield('styles')


    @include('partials.navbar')
    
  
   
        @yield('content')
    
  
    
  
    
    @yield('scripts')

µÇ¼ºó¸´ÖÆ

ÕâÀïµÄÖÐÎÄ×Ö·û¼¯ÊÇzh-Hans £¬ÈôÊÇÄãʹÓõÄÊÇÆäËû×Ö·û±àÂë £¬Ò²ÐèҪͬÑùÐ޸ġ£

½â¾öÒªÁì3£ºÊý¾Ý¿â×Ö·û¼¯ÉèÖÃ

ÈôÊÇÄãµÄLaravelÍøվʹÓÃÁËMySQLÊý¾Ý¿â £¬ÄÇôÔÚÊý¾Ý¿âÖÐÉèÖÃ×Ö·û¼¯¾ÍºÜÖ÷ÒªÁË¡£ÔÚMySQLÖÐ £¬¿ÉÒÔʹÓÃÒÔÏÂÏÂÁîÉó²éÊý¾Ý¿âµÄ×Ö·û¼¯£º

show variables like '%character%';

µÇ¼ºó¸´ÖÆ

ÈôÊÇÏÔʾµÄ×Ö·û¼¯²»ÊÇutf8»òutf8mb4 £¬¾ÍÐèÒªÐÞ¸ÄÊý¾Ý¿â×Ö·û¼¯¡£Ð޸ķ½·¨ÈçÏ£º

ALTER DATABASE `database_name` CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

µÇ¼ºó¸´ÖÆ

ÕâÀïµÄdatabase_nameÊÇÄãµÄÊý¾Ý¿âÃû³Æ £¬utf8mb4ÊÇ×Ö·û±àÂë £¬utf8mb4_unicode_ciÊÇ×Ö·û¼¯¡£

½â¾öÒªÁì4£ºÐÞ¸ÄLaravelÉèÖÃÎļþ

ÈôÊÇÒÔÉϽâ¾öÒªÁ춼ûÓнâ¾öÎÊÌâ £¬ÄÇô¾ÍÒªÐÞ¸ÄLaravelµÄÉèÖÃÎļþconfig/app.phpÁË¡£ÔÚ¸ÃÎļþÖÐ £¬ÉèÖÃlocaleΪzh-CN¼´¿É£º

'locale' => 'zh-CN',

µÇ¼ºó¸´ÖÆ

ÕâÀïµÄzh-CNÊÇÖÐÎÄ £¬ÈôÊÇÄãʹÓÃÆäËûÓïÑÔ £¬¾ÍÐèÒªÏìÓ¦µØÐ޸ġ£

×ܽá

ÖÐÎÄÂÒÂëÎÊÌâÔÚLaravel¿ª·¢Àú³ÌÖÐÊǺܳ£¼ûµÄÎÊÌâ £¬¿ÉÊÇͨ¹ýһЩ¼òÆÓµÄÒªÁì £¬ÎÒÃÇ¿ÉÒÔÇáËɵؽâ¾öÕâЩÎÊÌâ¡£ÔÚÒÔºóµÄLaravel¿ª·¢ÖÐ £¬Óöµ½ÖÐÎÄÂÒÂëÎÊÌâʱ £¬ÎÒÃÇ¿ÉÒÔÏÈ´ÓÎļþ±àÂë¡¢HTML×Ö·û¼¯¡¢Êý¾Ý¿â×Ö·û¼¯ºÍLaravelÉèÖÃÎļþÈëÊÖ £¬Ò»²½²½ÅŲéÏ¢Õù¾öÎÊÌâ¡£

ÒÔÉϾÍÊÇlaravelÖÐÎÄÂÒÂëµÄÏêϸÄÚÈÝ £¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí £¬°æȨÕùÒéÓë±¾Õ¾ÎÞ¹Ø £¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í尊龙凯时人生就是搏ÂËÓÍ»úÍø¹Ù·½Ì¬¶È £¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ £¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢ £¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢ £¬ÇëÄúÁ¬Ã¦ÁªÏµ尊龙凯时人生就是搏ʵʱÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ尊龙凯时人生就是搏

18523999891

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎå £¬9:30-18:30 £¬½ÚãåÈÕÐÝÏ¢

QR code
sitemap¡¢ÍøÕ¾µØͼ