Laravel
キャッシュ生成や削除コマンドはいくつか用意されているがコマンドによっては複数種のキャッシュを操作したりしなかったりするのでまとめておく。 command config route view event cache compiled description config:cache C C Create a cache file for fa…
まずカスタムルールクラスでは任意のバリデーションエラーメッセージを返せます。 class ImageRule implements Rule { public function passes($attribute, $value) { // do something } public function message() { return 'The :attribute must be image'…