LaravelではCakePHPと異なりValidationルールをControllerに記述する例が多い LaravelでVaidateルールをModelに記述する方法 LaravelのValidationルールをModelにコーディングして、 Controllerからバリデーションチェックする方法です。REST APIを構築した際には、バリデーションルールをControllerに記述したのですが、Modelに記述することも可能です。 Webで検索したところ Trick: Validation within models 上の記事がValidationをModelにコーディングする上で、シンプルに実現できるし参考になった。リンク先のコードをLaravel4.2で利用してみた。 class Todo extends Eloquent { protected $table = 'todos'