Laravel
Laravelã®ç·´ç¿ãã¦ãã«ãªãã¤ã¼ãæ°ã»ãããæ°ã©ã³ãã³ã°ãµã¤ããä½ãã¾ããã TwTimzã¨åããããªã®ã â« Buztter.com Twitter APIãå¶éãããã®ã§ãåããªããªãã¾ããã
ã¢ãã«ãä¿åãããã¨ãã¦ã¨ã©ã¼ãçºçã Illuminate\Database\QueryException : SQLSTATE[42S22]: Column not found: 1054 Unknown column 'hoge' in 'field list' ãã¼ãã«ã«ã¯åå¨ããªãã¡ã³ãå¤æ°ãè¨å®ãã¦ããã¨ããã®ã¨ã©ã¼ãçºçãããã¢ãã«ã«ã¡ã³â¦
Laravelã§è¨å®ãã¡ã¤ã«ã®å 容ãèªã¿è¾¼ã¿ããã®ã§ã.envãã¡ã¤ã«ã«è¨å®ãè¨è¿°ããã ãã®å 容ããconfig/hoge.php ã§èªã¿è¾¼ãã return array( 'hoge' => env('HOGE', 'default-value'), ); ãããèªã¿è¾¼ãã $hoge = config('hoge.hoge'); var_dump($hoge); â¦
ã¾ãã¯æ°ããããã¸ã§ã¯ããä½ãã $ composer create-project --prefer-dist laravel/laravel tamaeHomestead.yaml ã«è¿½å ããã sites: - map: nozomi.local to: /home/vagrant/code/nozomi/public - map: kanae.local to: /home/vagrant/code/kanae/publiâ¦
æ®éã«è¡¨ç¤ºããã¨ãã <div> {{ $hoge }}</div> ã¨ã¹ã±ã¼ããªãã§è¡¨ç¤ºããã¨ãã <div> {!! $hoge !!} </div>
åæ: ã½ã¼ã¹ãGitãªãã¸ããªã«åå¨ãããã¨ã1. git cloneããã # cd /var/www # git clone https://hoge.backlog.com/git/HOGE/hoge.git hoge # cd hode # chown -R apache:apache .2. Composerãã¤ã³ã¹ãã¼ã«ããã ã¤ã³ã¹ãã¼ã«æ¸ã¿ãªãä¸è¦ã # yum inâ¦