2017-04-01から1ヶ月間の記事一覧

純粋SPA VS バックエンドにSPA JSフレームワークを埋め込む

純粋SPAで大規模サービスの場合、初回起動時すべてのJS,CSSファイルを読み込むためパフォーマンスに影響が出る。 バックエンド埋め込み型SPAの場合、バックエンドのルーティングでサブドメインごとにSPAの起点ページを振り分けられるので読み込むファイルを…

Laravel5.4 と Vue2 のcomponentsの連携

環境:cloud9上にPHP7、laravel5.4をインストール。laravel内に設置したvueファイルの表示に関して。 *vueファイル内にlaravelのdirectiveは混ぜられない(コンパイル時エラーが発生する) vueで作成したファイル内にlaravelのmiddlewareやproviderを通したデ…

Laravel 5.4 Laravel Mix error: SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode

cloud9上のubuntuのnodeのversionが古いため発生。 → nvm install stable ・・・nodeをupdate → npm run dev ・・・正常に動作

Laravel5.4 + laravel/socialite google oauth issue

googleAPIにリクエストを投げた後、適切にcallbackURLを設定しているのにも関わらず下記のエラーが発生した時 "ClientException in RequestException.php line 107: Client error: `GET https://www.googleapis.com/plus/v1/people/me?prettyPrint=false` re…

Laravel5.4 configuration file が更新されないissue

/config以下のファイル内容の更新が反映されない場合 → php artisan cache:clear または、php artisan config:clear にて解決

Laravel5.4 + cloud9 php artisan migrate error

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`))…

Laravel5.4 php artisan make:migration エラー処理

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 5.4 laravel-mix issue

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>…