0001-01-01
1 min read

PHP/Laravel で null の可能性がある値を optional や Null合体演算子 ?? を使って安全に取り扱う https://r17n.page/2019/10/31/php-laravel-null-guard-using-optional-and/

【Laravel】optionalヘルパー関数でErrorException : Trying to get property of non-objectを防止する https://public-constructor.com/laravel-optional-helper-function/

optionalヘルパー https://xzxzyzyz.com/2018/02/larave-top-5-str-helpers/

EloquentのHasOneリレーションで関連先がないと null になる問題の対処方法 https://tech.innovator.jp.net/entry/2017/05/30/134945

Previous
Next