ÔõÑùÉó²élaravel°æ±¾
laravelÊÇÒ»ÖÖÏÖ´úµÄphp¿ò¼Ü£¬ÓÃÓÚͨ¹ý¼òÆӵġ¢ÓÅÃÀµÄÓï·¨ºÍ±í´ïʽ¿ìËÙ¹¹½¨webÓ¦ÓóÌÐò¡£laravelÊÇÊ¢Ðпò¼ÜÖ®Ò»£¬Ò»Ö±¿ª·¢Ð¹¦Ð§ºÍË¢ÐÂÏÖÓеĹ¦Ð§¡£ËäÈ»£¬ÎÒÃÇÒ²ÐèÒªÖªµÀ×Ô¼ºÊ¹ÓõÄlaravel°æ±¾¡£ÔÚÕâƪÎÄÕÂÖУ¬ÎÒÃǽ«Ì½ÌÖÔõÑùÉó²élaravelµÄ°æ±¾¡£
Ò»¡¢Éó²éLaravel×°ÖÃÎļþ¼Ðϵİ汾Îļþ
×î³£¼ûµÄ·½·¨ÊÇͨ¹ý¼ì²éLaravelµÄ×°ÖÃĿ¼ÄÚµÄÎļþ°æ±¾¡£ÔÚLaravelÏîÄ¿µÄ¸ùĿ¼Ï£¬ÓÐÒ»¸ö³ÆΪcomposer.lockµÄÎļþ£¬¸ÃÎļþ°üÀ¨ËùÓÐÒÀÀµºÍ°æ±¾µÄÏêϸÐÅÏ¢¡£
¿ÉÒÔͨ¹ýÒÔÏ°취Éó²éLaravel°æ±¾£º
1.·¿ªLaravelÏîÄ¿Îļþ¼Ð¡£
2.ÕÒµ½Îļþcomposer.lock¡£
3.·¿ªÎļþcomposer.lock¡£
4.²éÕÒÊ׸öʵÁУ¬”name”: “laravel/framework”
ÕÒµ½Õâ¸öλÖ㬿ÉÒÔ¿´µ½ÒÔÏÂÄÚÈÝ:
"name": "laravel/framework", "version": "v8.17.2", ... ...
µÇ¼ºó¸´ÖÆ
´Ë°æ±¾ÖÐ version ÌåÏÖÄ¿½ñµÄLaravel°æ±¾¡£
¶þ¡¢Éó²éLaravelÓ¦ÓóÌÐòµÄÃæ°å
LaravelÓ¦ÓóÌÐòµÄÓ¦ÓÃÃæ°åÒ²¿ÉÒÔÏÔʾ°æ±¾µÄÏêϸÐÅÏ¢¡£ÈÃÎÒÃÇ¿´¿´ÔõÑùÔÚLaravelµÄÓ¦ÓÃÃæ°åÖÐÉó²é°æ±¾¡£
1.·¿ªLaravelÏîÄ¿Îļþ¼Ð¡£
2.ÕÒµ½²¢·¿ª.envÎļþ¡£
3.È·±£ÔÚ.envÎļþÖÐÒÑÆôÓÃÓ¦ÓóÌÐòÃæ°å¡£
APP_DEBUG=true APP_ENV=local APP_NAME=Laravel APP_URL=http://localhost TELESCOPE_ENABLED=true #¿ªÆôÓ¦ÓÃÃæ°å
µÇ¼ºó¸´ÖÆ
4.ÔËÐÐLaravelÓ¦ÓóÌÐò¡£
5.ÔÚÄúµÄä¯ÀÀÆ÷Öлá¼ûhttp://localhost/telescope¡£
6.²éÕÒ¡°Laravel°æ±¾¡±Ð¡½Ú¡£
7.ÔÚ¡°Laravel°æ±¾¡±Ï£¬²éÔÄ°æ±¾¡£
ÔÚÓ¦ÓÃÃæ°åÖУ¬Äú¿ÉÒÔ¿´µ½Laravel°æ±¾¡£ÕâÊÇÒ»¸ö¸üºÃµÄÉó²é°æ±¾ºÅµÄÒªÁ죬ÓÉÓÚËü»¹ÌṩÁËÆäËû¹ØÓÚÄãµÄÓ¦ÓóÌÐòµÄÏêϸÐÅÏ¢¡£
Èý¡¢Ê¹ÓÃArtisanÏÂÁîÉó²éLaravel°æ±¾
»¹¿ÉÒÔʹÓÃArtisanÏÂÁîÀ´Éó²éLaravel°æ±¾¡£ArtisanÊÇLaravelÄÚÖõÄÒ»¸öÏÂÁîÐй¤¾ß£¬¿ÉÒÔ×ÊÖúÄúÖ´ÐÐÐí¶à³£¼ûµÄ¿ª·¢Ê¹Ãü¡£
1.·¿ªÏÂÁîÌáÐÑ·û»òÖնˣ¬²¢µ¼º½µ½ÄúµÄLaravelÓ¦ÓóÌÐòµÄ¸ùĿ¼¡£
2.¼üÈëÒÔÏÂÏÂÁî²¢»Ø³µ£º
php artisan --version
µÇ¼ºó¸´ÖÆ
3.Êä³ö½«ÏÔʾÄúµÄLaravel°æ±¾¡£
Laravel Framework x.x.x
µÇ¼ºó¸´ÖÆ
Õâ¸öÏÂÁî²»µ«»áÏÔʾLaravel°æ±¾£¬»¹»á°üÀ¨ÆäËûһЩÐÅÏ¢£¬ÀýÈçPHP°æ±¾¡¢Ð§ÀÍÆ÷ºÍ²Ù×÷ϵͳ¡£
½áÂÛ
ÒÔÉÏÊÇÉó²éLaravel°æ±¾µÄÈýÖÖÒªÁì¡£Äú¿ÉÒÔʹÓÃcomposer.lockÎļþ¡¢LaravelÓ¦ÓóÌÐòÃæ°åºÍArtisanÏÂÁîÀ´Éó²éLaravel°æ±¾¡£Ã¿ÖÖÒªÁ춼ÓÐ×Ô¼ºµÄÓŵ㣬ʹÓÃÄÄÖÖÒªÁìÈ¡¾öÓÚÄúµÄLaravel¿ª·¢·½·¨ºÍϲ»¶¡£ÎÞÂÛÄãÑ¡ÔñÄÄÖÖÒªÁ죬ÕâЩ°ì·¨¶¼¿ÉÒÔ×ÊÖúÄãÀֳɵØÉó²éLaravel°æ±¾¡£
ÒÔÉϾÍÊÇÔõÑùÉó²élaravel°æ±¾µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡