2017-04-01から1ヶ月間の記事一覧
純粋SPAで大規模サービスの場合、初回起動時すべてのJS,CSSファイルを読み込むためパフォーマンスに影響が出る。 バックエンド埋め込み型SPAの場合、バックエンドのルーティングでサブドメインごとにSPAの起点ページを振り分けられるので読み込むファイルを…
環境:cloud9上にPHP7、laravel5.4をインストール。laravel内に設置したvueファイルの表示に関して。 *vueファイル内にlaravelのdirectiveは混ぜられない(コンパイル時エラーが発生する) vueで作成したファイル内にlaravelのmiddlewareやproviderを通したデ…
cloud9上のubuntuのnodeのversionが古いため発生。 → nvm install stable ・・・nodeをupdate → npm run dev ・・・正常に動作
googleAPIにリクエストを投げた後、適切にcallbackURLを設定しているのにも関わらず下記のエラーが発生した時 "ClientException in RequestException.php line 107: Client error: `GET https://www.googleapis.com/plus/v1/people/me?prettyPrint=false` re…
/config以下のファイル内容の更新が反映されない場合 → php artisan cache:clear または、php artisan config:clear にて解決
php artisan migrate → [Illuminate\Database\QueryException] SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes (SQL: alter table `users` add unique `users_emai l_unique`(`email`))…
php artisan make:migraiton create_xxx_table 入力時のエラー include(/home/vagrant/Code/Laravel/database/migrations/2015_05_24_211527_create_articles_table.php): failed to open stream: No such file or directory 一旦作ったmigrationファイルを…
laravelインストール後 →npm install →npm run dev →ミックスされたapp.js生成 →TypeError: Cannot read property 'csrfToken' of undefined →もう一度npm run dev→error: jsにエラーがあるため 各々のファイルに ① <script> window.Laravel = <?php echo json_encod</script>…