åºäº laravel route ç 社交系ç»thinksns+ componentãç åæ¥è®°ç³»åä¸ã_php_web-itnose
é¦é¡µ
asp
php
javascript
iis
apache
html/css
coldfusion
ajax
vbscript
cgi
xml/xsl
è·¨æµè§å¨å¼å
ruby/rails
ç¨åºå
html5
jquery
seo
jboss
json
angularjs
markdown
nginx
thinkphp
yii
pageadmin
extjs
wampserver
kendo ui
coffeescript
gulp
ecmascript
bootstrap
itnoseé¦é¡µ > web > php >
åºäº laravel route ç 社交系ç»thinksns+ componentãç åæ¥è®°ç³»åä¸ã
2017-06-05 21:07
å¨åé¢ï¼æä»ç»äºæå±ç±»åï¼åå«æ plus-compnent å plus-plugin 两个ï¼è¿ééç¹è®²ä»¥ä¸å¦ä½å®ç° plus-component çã
plus-component æ¯ä»ä¹
å°±å¦åååä¸æ ·ï¼plus 代表çæ¯ thinlsns+ ç¨åºï¼ç¨ – åå² åé¢ç component å°±æ¯ãå ãæè æ们ç解æåºç¨ãå¨è¿éçãåºç¨ãæçæ¯éè¿å®ç° api æè web çåè½ãæ以产çäºè¿ä¸ªç±»åã
ä½æ¯ plus-component ä¸åªæ¯åºç¨ï¼ä¹å¯ä»¥æ¯ç®åçåè½æå±ï¼ä¾å¦medz/plus-storage-quniuå°±æ¯æå±çä¸çäºå¨åã
composer æ件ç建ç«
æ¢ç¶æ¶åå°è·¯ç±ï¼æå¼å§çæ³æ³ï¼å ¶å®æ¯ /routes ç®å½ä¸çææ件ï¼å çè·¯ç±æ件å¤å¶å°è¿éæ¥ãåæ¥ï¼åç°äºé®é¢ä¸è¶³ãæåæ³å°ï¼plus-component çå®ç°ï¼ä¸ä¸å®æ¯åºäºè·¯ç±çåºç¨ï¼ä¹æå¯è½æ¯ç®åçæå±ãæ们çä¸ä¸é´æ件çæ¥å£ç±»ï¼
å ¶ä¸ router æäºéå¿ é项ã
转èï¼æ¥æäºä¸ä¸ª hook æ¹æ³ installãupdate å uninstall æ¹æ³ï¼è¿ä¸ä¸ªåå«å¯¹åºçæ¯å®è£ ï¼å级ï¼å¸è½½ãè设计ä¸ï¼plus-component ä¸é´æ件ä¼å¨ laravel ç /config/component.php ä¸å¢å å¦ä¸é ç½®:
ä¸é´æ件ç composer.json é ç½®
å ¶å®å¾ç®åï¼çå°ä¸é¢æ·»å å° /config/component.php ç代ç äºï¼ installer 项åªéæ¥çå¢ï¼çä¸ å çé ç½®ï¼
å°±æ¯æåç extra.installer-class é ç½®çï¼è¿éæ¯å®æ´ç class nameï¼è¿æ ·ï¼å¨ composer æ件æ§è¡çæ¶å读åè¿ä¸ªé¢å¤çé ç½®ï¼å¹¶åå ¥å° laravel çé ç½®æ件ä¸ã
install/update/uninstall
å¨ç¤¾äº¤ç³»ç»thinksns+ ä¸æ php artisan component [install|update|unstall] vendor/name è¿æ ·ä¸ä¸ªå½ä»¤,主è¦æ¯ç¨ä½ å çå®è£ ï¼å级ï¼å¸è½½ãå®é è¿è¡å¦ä¸ï¼
éè¿è¿æ ·çæ¹å¼å®è£ å ï¼èè¿ä¸ªå½ä»¤ä¼è¯»å /config/component.php çé ç½®ï¼ä»èå¾å° installer ï¼è¿æ ·ï¼å¨è¿è¡ä¸åçåæ°çæ¶ååï¼è°ç¨ install,uodate,uninstall ç éæ± hook è¾¾å°ç®çã
router
å¨æä¸é¢çæ¥å£ç±»ä¸ä½ ä¹çå°äºï¼æä¸ä¸ª router æ¹æ³ï¼è¿ä¸ªæ¹æ³è¿åç±»åæ两个 void|stringï¼æä»¥ï¼ void 代表没æè·¯ç±ï¼string 就表示å è·¯ç±æ件çç»å¯¹å°åã
å¨ php artisan component å½ä»¤æ§è¡çæ¶åï¼å¯¹åºçæ·»å /config/component_routes.php éé¢çé ç½®ãå¨ /app/providers/routeserviceprovider.php ä¸å¦ä¸ï¼
å¯è½ä½ ä¼è¯¯ä¼ï¼ä¸ºä»ä¹åªæ¯ include è¿æ¥å¢ï¼æ¯çï¼è¿éç代ç å ¶å®æ¯åç § route::group æ¥çï¼èå¨å éé¢çæ件ï¼å¯ä»¥æ£å¸¸çä½¿ç¨ route::* è¿è¡è·¯ç±é ç½®ã
resource
æ¢ç¶å¯ä»¥åºäºè·¯ç±ï¼é£å°±å¿ ç¶ä¼åå¨éæèµæºçé®é¢ï¼å¨æ¥å£ç±»ä¸ä¹æè¿æ ·çè§å®ï¼
è¿éè¿åå¨å ä¸éæèµæºåå¨çç®å½ï¼æ§è¡å®è£ æè å级å½ä»¤çæ¶åå¤å¶å° /public/vendor/name ç®å½ä¸æ¥è¾¾å°éæèµæºåå¸çåè½ã
æ´é«çº§çå°è£
è¿éå ¶å®æ¯åªæ¨¡å¼å°è£ ï¼å¨ thinksns+ ç php artisan component å ¶å®è¿æä¸ä¸ª –link åæ°ï¼åä»ä¹ç¨çï¼å ¶å®ä¸é¾ç解ï¼å°±æ¯å§éæèµæºç±åæ¥çå¤å¶åæå建软é¾ãè¿å¨å¼åè¿ç¨ä¸å¾æç¨ã
ä¸æé¢åï¼ä¸ä¸ç¯æç« ï¼ä¼ç®åçè®²ä»¥ä¸ thinksns+ èªå°è£ çå½ä»¤å®ç°ã
å æµç³è¯·æ¹å¼
ããæä¾ä¸ªäºº/ä¼ä¸èç³»æ¹å¼å认è¯ä¿¡æ¯ï¼å®åid /ä¼ä¸è¥ä¸æ§ç §ç §çææ«æ件ï¼åç³è¯·è¯´æï¼åéé®ä»¶è³lihecong@zhishisoft.comå°ææºä¼è·å¾é¦æ¹å æµèµæ ¼ï¼åé¢æéï¼ç³è¯·ä»éã
å¼æºä»£ç ä»åº
githubï¼https://github.com/zhiyicx/th…ï¼ç¹å»æï¼æ¯æ¥å ³æ³¨å¼åå¨æãï¼
ç¸å
³æç´¢ï¼
åºäºxmlççµååå¡
å¿«ä¸å¾è¡¨
delphi ä¸å±
jspç³»ç»
.netç³»ç»
ç¸å ³æç«
2017-06-08 16:22 åºäº laravel ç thinksns+ alpha.2 çæ¬åå¸ãç åæ¥è®°å
ã
2017-06-06 15:50 å¦ä½åå° laravel é
ç½®å¯ä»¥ç½ç«åå°é
ç½®ã社群系ç»thinksns+ç åæ¥è®°åã
2017-06-14 17:34 è°è° laravel 5.5 ç ãèªå¨åç°ãåæ¤å»å¿æ
ã社交系ç»ç åæ¥è®°ä¸ã
2017-01-01 01:25 ç äºæ¨è | åºäº laravel çæ¥åç³»ç» register
2016-07-12 20:25 git 项ç®æ¨è | åºäº laravel 5.2 ç git 管çç³»ç»
æ´å¤ç¸å ³æç« >>
ææ°æç«
2017-06-20 01:35 èé们ï¼æ没æå¯è½è®©phpæ件åæ¶åªè½ä¸ä¸ªäººè®¿é®
2017-06-20 01:35 æä¹ç¦æ¢å¾çç´æ¥éè¿url访é®
2017-06-20 01:35 æ±æ!å¯å¨wampåªè½ç¨æ¬æºè®¿é®,åå±åç½çå
¶å®è®¾å¤è®¿é®ä¸å°!æäºå¤§å天t-t
2017-06-19 15:35 nginxä¸çthinkphpé®é¢
2017-06-19 15:35 php form æ件ä¸ä¼
æ´å¤ææ°æç« >>
çé¨æç´¢
javaç³»ç»
delphi ç³»ç»
oracleç³»ç»
.netä¸å±æ¶æ
.net ä¸å±æ¶æ
hibernate ä¸ç§ç¶æ
delphi ä¸å±æ¶æ
spring in action 第ä¸ç
springå®æ 第ä¸ç
asp.netä¸å±æ¶æ
asp.net ä¸å±æ¶æ
ä¸è§å½æ°å¾è¡¨
excelä¸ç»´å¾è¡¨
delphi 第ä¸æ¹æ§ä»¶
jspæ°é»åå¸ç³»ç»
京icpå¤14022385å·-2
©2014 itnose软件ç¼ç¨æç¨ | èç³»æ们ï¼emailï¼twobrushes@126.com qq:35155868