Laravelã®ã¤ã³ã¹ãã¼ã«ãã£ã¬ã¯ããªã¨URLãå¤æ´ãã
Laravelã§ã¯public以å¤ã®å ¨ã¦ã®ãã¡ã¤ã«ã¨ãã©ã«ããweb rootã§ã¯ãªãå ´æã«ç½®ããã¨ãæ¨å¥¨ããã¦ãããインストールã«ã¯ãããªãã¨ãæ¸ãã¦ããã
Laravelã§ã¯å ¬éããå¿ è¦ããããã¡ã¤ã«ã¯publicãã©ã«ãã¼ã«è¨ç½®ããã¢ããªã±ã¼ã·ã§ã³ã®ã³ã¼ãã¨ã¹ãã¬ã¼ã¸ãä¿è·ããããã«è¨è¨ããã¦ãã¾ããpublicãã©ã«ãã¼ããµã¤ãã®ããã¥ã¡ã³ãã«ã¼ãï¼ãããã¯Webã«ã¼ãã¨ãå¼ã°ãã¾ãï¼ã¨ãã¦è¨å®ããããpublicã®ä¸èº«ããµã¤ãã®ã«ã¼ããã£ã¬ã¯ããªã¼ã«è¨ç½®ããLaravelã®ä»ã®å ¨ãã¡ã¤ã«ãWebã«ã¼ãå¤ã¸ç½®ããã¨ãæ¨å¥¨ãã¾ãã
ç§ã®å ´åã¯ä»¥ä¸ã®ããã«ãã©ã«ãï¼ãã¡ã¤ã«ç§»åãããã¨ã«ããã
- public以ä¸ã®ãã¡ã¤ã«ãå ¨ã¦ãC:\xampp\htdocsãç´ä¸ã«ç½®ããpublicã使ããªãã
- Laravelã®æ¬ä½ãã©ã«ãã¯ãC:\xamppãç´ä¸ã«ç½®ãã
ç½®ããå¾ã«ãhttp://localhost/index.phpãã«ã¢ã¯ã»ã¹ããã¨ããããªã¨ã©ã¼ã¡ãã»ã¼ã¸ãåºãã
Warning: require(C:\xampp\htdocs/../bootstrap/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\index.php on line 21 Fatal error: require(): Failed opening required 'C:\xampp\htdocs/../bootstrap/autoload.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\index.php on line 21
ãããããã ãindex.phpã«è¨è¿°ããã¦ãããã¹ãå¤æ´ããªãã¦ããç§ã®ç°å¢ã®å ´åã¯ãC:\xamppãç´ä¸ã«ãlaravelãã¨ããæ¬ä½ãã©ã«ããããã®ã§ãä¸è¨ã®ããã«ãã¹ã«ãlaravelãã追è¨ããã
|-------------------------------------------------------------------------- | Register The Auto Loader |-------------------------------------------------------------------------- | | Composer provides a convenient, automatically generated class loader | for our application. We just need to utilize it! We'll require it | into the script here so that we do not have to worry about the | loading of any our classes "manually". Feels great to relax. | */ require __DIR__.'/../laravel/bootstrap/autoload.php'; /* |-------------------------------------------------------------------------- | Turn On The Lights |-------------------------------------------------------------------------- | | We need to illuminate PHP development, so let's turn on the lights. | This bootstraps the framework and gets it ready for use, then it | will load up this application so that we can run it and send | the responses back to the browser and delight these users. | */ $app = require_once __DIR__.'/../laravel/bootstrap/start.php';
ããã§ãhttp://localhost/index.phpãã§Laravelãåãããã«ãªã£ãã
ã§ãã·ã³ããªãã¯ãªã³ã¯ã®ã»ãããªã¹ã¹ã¡âLaravelとシンボリックリンク - ふたりはララベル (Laravel PHP Framework)