尊龙凯时人生就是博

Laravel¿ª·¢£ºÔõÑùʹÓÃLaravel ValetÉèÖÃÍâµØ¿ª·¢ÇéÐÎ £¿

laravelÊÇÒ»¸ö¹ãÊܽӴýµÄphp¿ò¼Ü £¬Îª¿ª·¢Ö°Ô±ÌṩÁËÇ¿Ê¢µÄ¹¤¾ßºÍ¹¦Ð§¡£ÈôÊÇÄúÏëʹÓÃlaravel¾ÙÐÐÍâµØ¿ª·¢ £¬ÄÇôÄúÐèҪʹÓÃÒ»¸öÍâµØ¿ª·¢ÇéÐΡ£ÔÚ±¾ÎÄÖÐ £¬ÎÒÃǽ«½²ÊöÔõÑùʹÓÃlaravel valetÉèÖÃÍâµØ¿ª·¢ÇéÐΡ£

Laravel ValetÊÇÒ»ÖÖÕë¶ÔMacÓû§µÄÍâµØ¿ª·¢ÇéÐι¤¾ß £¬Ëü¿ÉÒÔ¿ìËÙÇáËɵØÉèÖÃÄúµÄ¿ª·¢ÇéÐΡ£ValetʹÓÃNginx×÷ΪWebЧÀÍÆ÷ £¬Í¬Ê±»¹ÌṩÁËÆäËû¹¦Ð§ £¬ÀýÈçMySQL £¬PHP £¬Redis £¬MongodbµÈ¡£

Ê×ÏÈ £¬ÄúÐèҪȷ±£ÄúµÄMacÉÏÒѾ­×°ÖÃÁËHomebrew¡£·­¿ªÖÕ¶Ë £¬ÔËÐÐÒÔÏÂÏÂÁî¼ì²éÊÇ·ñ×°ÖÃÁËHomebrew£º

brew --version

µÇ¼ºó¸´ÖÆ

ÈôÊÇ·µ»ØHomebrewµÄ°æ±¾ £¬ÔòÌåÏÖÒÑÀÖ³É×°Öá£

½ÓÏÂÀ´ £¬ÎÒÃÇÐèҪװÖÃValet¡£ÔÚÖÕ¶ËÖÐÔËÐÐÒÔÏÂÏÂÁ

composer global require laravel/valet

µÇ¼ºó¸´ÖÆ

ÒÔÉÏÏÂÁȫ¾Ö×°ÖÃValet¡£×°ÖÃÍê³Éºó £¬ÔËÐÐÒÔÏÂÏÂÁî¾ÙÐгõʼ»¯£º

valet install

µÇ¼ºó¸´ÖÆ

ÔÚ³õʼ»¯Àú³ÌÖÐ £¬Valet»á×°ÖÃÐëÒªµÄÈí¼þ°ü £¬²¢ÇÒ½«NginxÉèÖÃΪĬÈϵÄWebЧÀÍÆ÷¡£

×°ÖÃÍê³Éºó £¬ÄúÐèÒª½«ValetÉèÖÃΪ×Ô¶¯Æô¶¯¡£ÔÚÖÕ¶ËÖÐÔËÐÐÒÔÏÂÏÂÁ

valet trust

µÇ¼ºó¸´ÖÆ

´ËÏÂÁװÖÃÕûÊýSSL²¢½«ÆäÉèÖÃΪÐÅÍеÄÍâµØ¿ª·¢Ö¤Êé¡£

½ÓÏÂÀ´ £¬ÈÃÎÒÃǽ¨ÉèÒ»¸öеÄÏîÄ¿²¢½«ÆäÉèÖÃΪʹÓÃValet¡£¼ÙÉèÄúµÄÏîĿ·¾¶Îª/Users/yourname/Projects/my-app¡£ÔÚ´ËĿ¼ÖÐÔËÐÐÒÔÏÂÏÂÁ

cd /Users/yourname/Projects/my-app
valet link

µÇ¼ºó¸´ÖÆ

ÒÔÉÏÏÂÁValetÉèÖÃΪ´ËÏîÄ¿µÄÍâµØ¿ª·¢ÇéÐΡ£ÏÖÔÚ £¬Äú¿ÉÒÔÔÚä¯ÀÀÆ÷ÖÐÊäÈëhttp://my-app.testÉó²éÄúµÄÓ¦ÓóÌÐòÁË¡£

ÈôÊÇÄúÏëʹÓÃMySQL×÷ΪÊý¾Ý¿â £¬ÇëÈ·±£ÄúÔÚʹÓÃValet֮ǰÒѾ­×°ÖÃÁËMySQL £¬²¢Ê¹ÓÃÒÔÏÂÏÂÁîÆô¶¯MySQL£º

brew services start mysql

µÇ¼ºó¸´ÖÆ

ÏÖÔÚ £¬Äú¿ÉÒÔÔÚ.envÎļþÖÐÖ¸¶¨MySQLÊý¾Ý¿âµÄÅþÁ¬¡£ÕâÊÇÒ»¸öʾÀý£º

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

µÇ¼ºó¸´ÖÆ

×îºó £¬ÈôÊÇÄú²»Ê¹ÓÃValetÁË £¬Äú¿ÉÒÔʹÓÃÒÔÏÂÏÂÁîɾ³ýValet²¢·µ»ØĬÈϵÄWebЧÀÍÆ÷¡£

valet uninstall

µÇ¼ºó¸´ÖÆ

ÔÚÍâµØ¾ÙÐпª·¢Ê±Ê¹ÓÃValet¿ÉÒÔÌṩ±ã½ÝµÄ¿ª·¢ÌåÑé £¬Ê¹ÄúÄܹ»¸ü¿ìµØ´î½¨LaravelÓ¦ÓóÌÐò¡£Ï£ÍûÕâƪÎÄÕÂÄܶÔÄúÓÐËù×ÊÖú £¬Ò²Ï£ÍûÄúÔÚʹÓÃValetʱ¿ÉÒÔ˳Ë쿪·¢ÄúµÄÓ¦ÓóÌÐò£¡

ÒÔÉϾÍÊÇLaravel¿ª·¢£ºÔõÑùʹÓÃLaravel ValetÉèÖÃÍâµØ¿ª·¢ÇéÐÎ £¿µÄÏêϸÄÚÈÝ £¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

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

Ïà¹ØÐÂÎÅ

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

13452372176

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

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

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