×ðÁú¿­Ê±¹ÙÍøµÇ¼

laravel5.6×°Öý̳Ì

laravel 5.6ÊÇ×îеÄlaravel¿ò¼Ü°æ±¾ £¬ËüÊÇÒ»¸ö¿ìËÙ¿ª·¢webÓ¦ÓóÌÐòµÄÇ¿Ê¢¹¤¾ß¡£laravel 5.6²»µ«¾ßÓÐÖØ´óµÄÉçÇø £¬²¢ÇÒËü»¹ÓµÓÐÐí¶àÒ×ÓÚʹÓõĹ¦Ð§ £¬Ê¹µÃËü³ÉΪ¿ª·¢ÕßÊ×Ñ¡µÄphp¿ò¼ÜÖ®Ò»¡£ÔÚ±¾ÎÄÖÐ £¬ÎÒÃǽ«ÏÈÈÝlaravel 5.6µÄ×°Öð취¡£

°ì·¨1£º×¼±¸ÇéÐÎ

ÒªÔÚÍâµØÅÌËã»úÉÏ×°ÖÃLaravel 5.6 £¬ÄúÐèÒªÔÚÅÌËã»úÉÏ×°ÖÃPHP¡¢Composer ºÍ Git¡£ÔÚÕâÖÖÇéÐÎÏ £¬ÎÒÃǽ«Ê¹ÓÃMAMP×÷ΪWebЧÀÍÆ÷¡£

°ì·¨2£º×°ÖÃComposer

·­¿ªÖն˲¢ÔËÐÐÒÔÏÂÏÂÁîÀ´×°ÖÃComposer¡£

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === '61069FE8C6439D3B1B1698B81346B01B30E7842B92C2C20318CFF50068C8F2E9D04C2F2E987E99CF3F136587262C097B') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"

µÇ¼ºó¸´ÖÆ

ÕâЩÏÂÁÏÂÔز¢×°ÖÃComposer¡£ÒªÑéÖ¤ÊÇ·ñ׼ȷװÖà £¬ÇëÔËÐÐÒÔÏÂÏÂÁî¡£

composer

µÇ¼ºó¸´ÖÆ

°ì·¨3£º¿Ë¡Laravel 5.6´æ´¢¿â

ÒªÔÚÍâµØÅÌËã»úÉÏ×°ÖÃLaravel 5.6 £¬ÄúÐèÒª¿Ë¡Laravel´æ´¢¿â¡£Îª´Ë £¬ÇëÔÚÖÕ¶ËÖÐתµ½Ï£Íû´æ´¢LaravelÓ¦ÓóÌÐòµÄĿ¼ £¬²¢¼üÈëÒÔÏÂÏÂÁî¡£

git clone https://github.com/laravel/laravel.git

µÇ¼ºó¸´ÖÆ

Õâ¸öÏÂÁ´ÓGitHubÉϵĴ洢¿âÖпË¡×îа汾µÄLaravel¡£

°ì·¨4£º×°ÖÃLaravelÒÀÀµÏî

½ÓÏÂÀ´ £¬ÎÒÃÇÐèҪʹÓÃComposer×°ÖÃLaravel 5.6µÄÒÀÀµÏî¡£ÔÚÖÕ¶ËÖÐ £¬×ªµ½´æ´¢LaravelÓ¦ÓóÌÐòµÄĿ¼ £¬È»ºó¼üÈëÒÔÏÂÏÂÁî¡£

composer install

µÇ¼ºó¸´ÖÆ

Õâ¸öÏÂÁ´Ócomposer.jsonÎļþÖжÁÈ¡Ó¦ÓóÌÐòÐèÒªµÄÒÀÀµÏî £¬²¢½«Æä×°Öõ½Ó¦ÓóÌÐòÖС£

°ì·¨5£ºÉèÖÃLaravelÓ¦ÓóÌÐò

ÔÚ×°ÖÃÍêLaravelÒÀÀµÏîÖ®ºó £¬ÎÒÃÇÐèÒª¾ÙÐÐһЩÉèÖá£Ê×ÏÈ £¬ÎÒÃÇÐèÒªÕë¶Ô´ËÓ¦ÓóÌÐòΪÆäÌìÉúÒ»¸öÃÜÔ¿¡£ÔÚÖÕ¶ËÖÐ £¬×ªµ½´æ´¢LaravelÓ¦ÓóÌÐòµÄĿ¼ £¬È»ºó¼üÈëÒÔÏÂÏÂÁî¡£

php artisan key:generate

µÇ¼ºó¸´ÖÆ

Õâ¸öÏÂÁÔÚÓ¦ÓóÌÐòÖÐÉèÖÃÃÜÔ¿¡£½ÓÏÂÀ´ £¬ÎÒÃÇÐèÒª½¨ÉèÒ»¸öÊý¾Ý¿â £¬²¢½«ÆäÉèÖÃΪLaravelÓ¦ÓóÌÐòµÄĬÈÏÊý¾Ý¿â¡£ÔÚ´Ë´¦ÎÒÃǽ«Ê¹ÓÃMAMP mysqlÊý¾Ý¿â¡£

ÔÚ.envÎļþÖÐ £¬½«ÒÔÏÂÐÐÖеÄÊý¾Ý¿âÃû³Æ £¬Óû§ÃûºÍÃÜÂë¸ü¸ÄΪÄúÏ£ÍûʹÓõÄÃû³Æ¡£

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=root

µÇ¼ºó¸´ÖÆ

°ì·¨6£ºÔËÐÐÓ¦ÓóÌÐò

ÏÖÔÚÎÒÃÇÒѾ­Íê³ÉÁËLaravelÓ¦ÓóÌÐòµÄ×°ÖúÍÉèÖà £¬ÎÒÃÇ¿ÉÒÔÔËÐÐËü²¢ÔÚWebä¯ÀÀÆ÷ÖÐÉó²éËü¡£ÔÚÖÕ¶ËÖÐ £¬×ªµ½´æ´¢LaravelÓ¦ÓóÌÐòµÄĿ¼ £¬È»ºó¼üÈëÒÔÏÂÏÂÁî¡£

php artisan serve

µÇ¼ºó¸´ÖÆ

´ËÏÂÁÆô¶¯WebЧÀÍÆ÷²¢½«Ó¦ÓóÌÐò×÷ΪÍâµØЧÀÍÆ÷ÉϵĻù±¾URLÔËÐС£ÏÖÔÚ £¬Äú¿ÉÒÔÔÚWebä¯ÀÀÆ÷ÖÐÉó²éÄúµÄLaravel 5.6Ó¦ÓóÌÐò¡£

×ܽá

×°ÖÃLaravel 5.6ÊÇÒ»ÏîÏà¶Ô¼òÆÓµÄʹÃü £¬Ö»ÐèÒª×ñÕÕÉÏÊö°ì·¨¼´¿É¿ìËÙ×îÏÈ¡£LaravelÌṩÁËÐí¶àÒ×ÓÚʹÓõĹ¦Ð§ £¬Ê¹µÃ¿ª·¢Ö°Ô±¿ÉÒÔ¸ü¿ìµØ½¨ÉèºÍά»¤WebÓ¦ÓóÌÐò¡£Í¨¹ýʹÓÃComposer £¬Äú¿ÉÒÔÇáËɵØÖÎÀíÒÀÀµÏî¡£Òò´Ë £¬Äú¿ÉÒÔרעÓÚ¿ª·¢¾«²ÊµÄWebÓ¦ÓóÌÐò¶ø²»ÊÇÆÆ·Ñʱ¼äºÍ¾«ÉñÀ´ÖÎÀíÒÀÀµÏî¡£

ÒÔÉϾÍÊÇlaravel5.6×°Öý̵̳ÄÏêϸÄÚÈÝ £¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

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

Ïà¹ØÐÂÎÅ

ÁªÏµ×ðÁú¿­Ê±¹ÙÍøµÇ¼

18523999891

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

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

QR code
ÍøÕ¾µØͼ