[PlatformCon 24] Platform Orchestrators: The Missing Middle of Internal Developer Platforms?
![AWS vs GCP 今から作る ならどっちがいいの!?](https://cdn-ak-scissors.b.st-hatena.com/image/square/98f3bee026af7b4a6a71e4265fc81a9b26443cee/height=288;version=1;width=512/https%3A%2F%2Ffiles.speakerdeck.com%2Fpresentations%2F7834b5a3e2624ccdad4567d61e5240c0%2Fslide_0.jpg%3F8804839)
こんにちは。エンジニアの @localdisk です。タイトルの件、最近まで自分も知らなくてマニュアルにも載ってないのでブログに書くことにしました。 具体的にどういうこと? たとえば User クラスと 1:1 の関連がある Profile クラスがあるとします。 <?php namespace App; class User extends Authenticatable { public function profile() { return $this->hasOne(Profile::class); } } 上記のように profile メソッドを定義して、関連の存在しない状態で profile メソッドを呼び出すと null が戻ってきて悲しいことになります。そのことを知らずにメソッドチェインすると…。 <?php // PHP error: Trying to get prop
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く