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

laravelÔõô·­¿ªÏÂÁî

laravelÊÇÒ»¿îÊ¢ÐеÄphp¿ò¼Ü£¬Æä¾ßÓмòÆÓÒ×ÓᢿÉÀ©Õ¹ÐÔÇ¿¡¢´úÂ븴ÓÃÐԸߵÈÌص㣬Êܵ½Ô½À´Ô½¶àµÄ¿ª·¢ÕßµÄϲ»¶¡£ÔÚʹÓÃlaravelʱ£¬ÎÒÃÇ¿ÉÒÔʹÓÃÏÂÁîÀ´Íê³ÉһЩ³£¼ûµÄ¿ª·¢Ê¹Ãü£¬ÈçÌìÉú¿ØÖÆÆ÷¡¢½¨ÉèÊý¾Ý¿âǨáãµÈ¡£½ÓÏÂÀ´£¬±¾ÎĽ«ÏÈÈÝlaravelµÄÏÂÁîÐÐʹÓÃÒªÁì¡£

Ò»¡¢Ç°ÖÃÌõ¼þ

ÔÚʹÓÃLaravelµÄÏÂÁîÐй¤¾ß֮ǰ£¬ÎÒÃÇÐèÒªÏÈ×°ÖÃLaravel¡£LaravelµÄ×°ÖÃÒªÁì¿ÉÒԲο¼Laravel¹Ù·½Îĵµ¡£

¶þ¡¢ÔõÑù·­¿ªÏÂÁîÐй¤¾ß

ÔÚWindowsϵͳÖУ¬¿ÉÒÔͨ¹ýWin+R¿ì½Ý¼ü·­¿ªÔËÐд°¿Ú£¬ÊäÈë¡°cmd¡±²¢°´Ï»سµ¼ü£¬·­¿ªÏÂÁîÐÐÖնˡ£

ÔÚMacOSϵͳÖУ¬¿ÉÒÔʹÓá°Öնˡ±Ó¦ÓóÌÐò£¬Ò²¿ÉÒÔʹÓÃSpotlightËÑË÷¿òÖÐÊäÈë¡°Öնˡ±·­¿ª¡£

Èý¡¢Ê¹ÓÃLaravelµÄÏÂÁîÐй¤¾ß

Éó²é¿ÉÓõÄÏÂÁî

ÔÚÖÕ¶ËÖнøÈëÏîÄ¿¸ùĿ¼²¢ÊäÈëÒÔÏÂÏÂÁ

php artisan

Õâ»áÁгöËùÓпÉÓõġ¢ÒÑ×¢²áµÄLaravelÏÂÁî¡£±ðµÄ£¬»¹¿ÉÒÔʹÓá°help¡±ÏÂÁîÉó²éµ¥¸öÏÂÁîµÄ×ÊÖúÎĵµ£¬È磺

php artisan help make:controller

ÌìÉú´úÂë

ÔÚLaravelÖУ¬ÎÒÃÇ¿ÉÒÔʹÓÃÏÂÁîÐÐÌìÉúÖÖÖÖ´úÂëÄ£°å£¬ÀýÈ磺

ÌìÉú¿ØÖÆÆ÷£º

php artisan make:controller UserController

ÌìÉúÄ£×Ó£º

php artisan make:model User

½¨ÉèÊý¾Ý¿âǨá㣺

php artisan make:migration create_users_table

ÌìÉú×ÊÔ´¿ØÖÆÆ÷£º

php artisan make:controller –resource UserController

ÌìÉúÈÏÖ¤¿ØÖÆÆ÷£º

php artisan make:auth

Êý¾Ý¿âǨáã

LaravelÖеġ°Ç¨á㡱ʹÊý¾Ý¿â½á¹¹¸ü¸ÄºÍ¸üбäµÃ¸üÈÝÒס£Ê¹ÓÃÒÔÏÂÏÂÁîÀ´Ö´ÐÐÊý¾ÝǨá㣺

php artisan migrate

ʹÓÃÒÔÏÂÏÂÁî¿ÉÒԻعö×î½üµÄÒ»´ÎǨáã²Ù×÷£º

php artisan migrate:rollback

Êý¾ÝÌî³ä

ʹÓÃÒÔÏÂÏÂÁîÏòÊý¾Ý¿âÌî³äÊý¾Ý£º

php artisan db:seed

ÔËÐÐÍâµØ¿ª·¢Ð§ÀÍÆ÷

LaravelÌṩÁË×Ô´øµÄÍâµØ¿ª·¢Ð§ÀÍÆ÷£¬Ê¹ÓÃÒÔÏÂÏÂÁî¿ÉÒÔÆô¶¯ÍâµØ¿ª·¢Ð§ÀÍÆ÷£º

php artisan serve

ĬÈÏÇéÐÎÏ£¬Ð§ÀÍÆ÷»á¼àÌý8000¶Ë¿Ú¡ £¿ÉÒÔͨ¹ýÌí¼Ó¡°–port¡±Ñ¡ÏîÀ´¸ü¸Ä¶Ë¿ÚºÅ£º

php artisan serve –port=8888

ÆäËû³£ÓÃÏÂÁî

Çå¿Õ»º´æ£º

php artisan cache:clear

ÌìÉú·ÓÉ»º´æ£º

php artisan route:cache

ɨ³ý·ÓÉ»º´æ£º

php artisan route:clear

½¨ÉèÖ¸¶¨ÃüÃû¿Õ¼äµÄеÄÊÂÎñÀࣺ

php artisan event:generate YourEvent

ÌìÉúʹÃü£º

php artisan make:job YourJob

½«Ê¹ÃüÍÆË͵½ÐÐÁУº

php artisan queue:work

×Ô½ç˵ÏÂÁî

ÈôÊÇÐèÒª£¬Óû§»¹¿ÉÒÔ×Ô½ç˵LaravelÏÂÁÒÔ±ãƾ֤ÐèÒªÌí¼Ó¸ü¶à¹¦Ð§¡£Òª½¨Éè×Ô½ç˵ÏÂÁÇëʹÓÃÒÔÏÂÏÂÁ

php artisan make:command CustomCommand

È»ºóÔÚÌìÉúµÄÏÂÁîÀàÖбàдִÐдúÂ롣ΪÁËʹLaravelʶ±ð¸ÃÏÂÁ¿ÉÒÔ½«¸ÃÏÂÁî×¢²áµ½¿ØÖÆ̨ÄÚºËÖС£

ËÄ¡¢×ܽá

LaravelµÄÏÂÁîÐй¤¾ßΪÎÒÃǵĿª·¢Àú³Ì´øÀ´ÁËÐí¶à±ãµ±¡£ÕÆÎÕÏÂÁîÐй¤¾ßµÄʹÓÃÒªÁì¿ÉÒÔ´ó´óÌá¸ß¿ª·¢Ð§ÂÊ¡£Ï£Íû±¾ÎÄËùÏÈÈݵÄÄÚÈݶÔÄúÓÐËù×ÊÖú¡£

ÒÔÉϾÍÊÇlaravelÔõô·­¿ªÏÂÁîµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

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

Ïà¹ØÐÂÎÅ

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

18523999891

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

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

QR code
ÍøÕ¾µØͼ