2017-01-01から1年間の記事一覧
Laravel5.3 未満 https://readouble.com/laravel/5.3/ja/application-testing.html レスポンスが200 OKかチェックしたい場合はassertResponseOkを利用 レスポンスコードを指定したい場合はassertResponseStatusを利用する Laravel5.4 https://readouble.com/…
最後以外は普通にドキュメントに書いてあることですがたまに触ると忘れるのでメモがてら。 カラム名を変更したい デフォルトは以下の通り 登録日時: created_at 更新日時: updated_at 変更する場合はCREATED_AT/UPDATED_ATを設定する 登録日時、更新日時を持…
久し振りにLaravelを入れたところルーティング周りが 変更されていたので軽く触ってみました。 APIのルーティングはapi.phpにて管理します。 試しに以下のような設定を追加します。 /api/echoにアクセスするとHello Worldが表示されます。 api.phpはApp\Prov…
https://mariadb.com/kb/en/library/create-table/#default From MariaDB 10.2.1 you can use most functions in DEFAULT. Expressions should have parentheses around them. If you use a non deterministic function in DEFAULT then all inserts to the …