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

ÔõÑù´î½¨±ðÈ˵ÄLaravelÔ´Âë

ÔÚµ±½ñµÄÊÖÒÕÁìÓò£¬laravel×÷Ϊһ¸ö¿ªÔ´µÄphp webÓ¦ÓóÌÐò¿ò¼Ü£¬ÒÑÔÚÌìϹæÄ£ÄÚ»ñµÃÆÕ±éÓ¦Óá£ÖÚ¶àµÄlaravel¿ª·¢ÕߺÍÍŶӶ¼½«×Ô¼ºµÄ´úÂë¿â¿ªÔ´£¬¹©ÆäËû¿ª·¢ÕßѧϰºÍ²Î¿¼£¬Ê¹µÃ´úÂëµÄ¹²ÏíºÍʹÓñäµÃÔ½·¢ÈÝÒ׺ͱã½Ý¡£¿ÉÊÇ£¬¹ØÓÚ³õѧÕßÀ´Ëµ£¬°Ñ±ðÈ˵ÄlaravelÔ´Âë´î½¨ÆðÀ´È´¿ÉÄÜÊÇÒ»¼þÄÑÌâµÄÊÂÇé¡£ÄÇô£¬±¾ÎĽ«·Ö°ì·¨À´ÏÈÈÝÔõÑù´î½¨±ðÈ˵ÄlaravelÔ´Âë¡£

µÚÒ»²½£ºÏÂÔØÔ´Âë

Ê×ÏÈ£¬ÎÒÃÇÐèÒªµ½GithubÉÏÏÂÔØÐèÒª´î½¨µÄLaravelÔ´Âë¡£¿ÉÒÔͨ¹ýÒÔÏ°취À´ÊµÏÖ£º

·­¿ªGithub²¢ËÑË÷ÐèÒª´î½¨µÄLaravelÔ´Âë¡£

½øÈë¸ÃÔ´ÂëµÄÖ÷Ò³£¬Èçhttps://github.com/laravel/laravel¡£

µã»÷¡°Clone or download¡±£¬²¢Ñ¡ÔñʹÓá°Download ZIP¡±»òÕß¡°Git Bash¡±µÈ·½·¨¾ÙÐÐÏÂÔØ¡£

µÚ¶þ²½£º½¨ÉèÊý¾Ý¿â

ÔڴLaravelµÄÀú³ÌÖУ¬ÎÒÃÇÐèÒªÏȽ¨ÉèÒ»¸öÊý¾Ý¿â£¬ÒÔ±ãLaravelÓ¦ÓóÌÐòÄܹ»Õý³£»á¼ûÊý¾Ý¿â£¬²¢ÇÒ½«ËùÐèÒªµÄÊý¾Ý´æ´¢ÔÚÆäÖС£¿ÉÒÔͨ¹ýÒÔÏ°취À´½¨ÉèÊý¾Ý¿â£º

·­¿ªmysql¿Í»§¶Ë£¬Èçmysql.exe¡£

ÊäÈëmysqlµÄÉÏ°¶ÐÅÏ¢£¬ÈçÓû§ÃûºÍÃÜÂë¡£

½¨ÉèÒ»¸öеÄÊý¾Ý¿â£¬Èç¡°laravel_db¡±¡£

µÚÈý²½£ºÉèÖÃÇéÐÎÎļþ

ÔÚÏÂÔصÄÔ´ÂëÖУ¬ÎÒÃÇ¿ÉÒÔÕÒµ½¡°.env.example¡±Îļþ£¬ÐèÒª½«Æ俽±´Ò»·Ý²¢½«ÆäÃüÃûΪ¡°.env¡±¡£È»ºó£¬ÎÒÃÇÐèÒª·­¿ª¡°.env¡±Îļþ£¬²¢¾ÙÐÐÒÔϵÄÉèÖãº

Ó¦ÓóÌÐòÃÜÔ¿£ºÄ¬ÈÏÇéÐÎÏ£¬LaravelÓ¦ÓóÌÐòÔÚ.envÉèÖÃÎļþÖаüÀ¨ÁËÒ»¸ö¡°APP_KEY¡±ÉèÖÃÏÓÃÓÚ¼ÓÃÜÏ¢ÕùÃÜÓû§µÄÃÜÂëµÈÃô¸ÐÐÅÏ¢¡£ÎÒÃÇÐèÒªÔÚÓ¦ÓóÌÐòÖÐÌìÉúËæ»úµÄÃÜÔ¿£¬ÒÔ°ü¹ÜÓ¦ÓóÌÐòÔ½·¢Çå¾²£º

php artisan key:generate

Êý¾Ý¿âÉèÖãºÎÒÃÇÐèÒªÔÚ.envÉèÖÃÎļþÖÐÉèÖÃ׼ȷµÄÊý¾Ý¿âÅþÁ¬ÐÅÏ¢£¬ÈçÏ£º

DB_CONNECTION=mysql

DB_HOST=127.0.0.1

DB_PORT=3306

DB_DATABASE=laravel_db

DB_USERNAME=root

DB_PASSWORD=

ÆäËûÉèÖ㺻¹ÐèÒªÉèÖÃÆäËûµÄһЩ»ù´¡ÐÅÏ¢£¬ÈçÓ¦ÓóÌÐòµÄÃû³Æ¡¢URL¡¢Ê±Çø¡¢ÈÕ־ƵµÀµÈµÈ¡£

µÚËIJ½£º×°ÖÃÒÀÀµÏî

ÔÚÉèÖúÃÇéÐÎÎļþÖ®ºó£¬ÎÒÃÇÐèҪװÖÃLaravelÓ¦ÓóÌÐòËùÐèÒªµÄÒÀÀµÏî¡£¿ÉÒÔͨ¹ýÒÔÏÂÏÂÁîÀ´ÊµÏÖ£º

composer install

µÚÎå²½£ºÖ´ÐÐÊý¾Ý¿âǨáã

ÔÚ×°ÖÃÍêËùÐèµÄÒÀÀµÏîÖ®ºó£¬ÎÒÃÇÐèÒªÖ´ÐÐÊý¾Ý¿âǨáã²Ù×÷¡£Õ⽫½¨ÉèËùÐèµÄÊý¾Ý±íºÍ×ֶΡ£¿ÉÒÔͨ¹ýÒÔÏÂÏÂÁîÀ´ÊµÏÖ£º

php artisan migrate

µÚÁù²½£ºÆô¶¯Ó¦ÓóÌÐò

µ±ÎÒÃÇÍê³ÉÒÔÉϵİ취ºó£¬ÎÒÃÇ¿ÉÒÔͨ¹ýÒÔÏÂÏÂÁîÀ´Æô¶¯ÎÒÃÇÒѾ­´î½¨ºÃµÄLaravelÓ¦ÓóÌÐò¡£

php artisan serve

µ±ÎÒÃÇÖ´ÐÐÍêÒÔÉÏÏÂÁîºó£¬ÎÒÃÇ¿ÉÒÔÔÚä¯ÀÀÆ÷ÖÐÊäÈë¡°http://localhost:8000¡±À´»á¼ûÎÒÃǵÄLaravelÓ¦ÓóÌÐò¡£

×ܽ᣺

ͨ¹ýÒÔÉϵİ취£¬ÎÒÃÇ¿ÉÒÔÀֳɵشһ¸öÌåÈ˵ÄLaravelÔ´Â룬²¢Äܹ»ÔÚÍâµØÇéÐÎÖÐÖ´ÐС£Í¬Ê±£¬±¾ÎÄÒ²ÏÈÈÝÁËÔõÑù½¨ÉèÊý¾Ý¿â¡¢ÉèÖÃÇéÐÎÎļþ¡¢×°ÖÃÒÀÀµÏî¡¢Ö´ÐÐÊý¾Ý¿âǨáã¡¢Æô¶¯Ó¦ÓóÌÐòµÈÐëÒªµÄ°ì·¨£¬ÐÅÍгõѧÕßÃÇÄܹ»ÇáËɵØÕÆÎÕÕâЩÊÖÒÕ£¬²¢ÇÒÒ²Äܹ»¸üºÃµØÃ÷È·ºÍÔËÓÃLaravel¿ò¼Ü¡£

ÒÔÉϾÍÊÇÔõÑù´î½¨±ðÈ˵ÄLaravelÔ´ÂëµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

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

Ïà¹ØÐÂÎÅ

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

18523999891

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

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

QR code
ÍøÕ¾µØͼ