Dumbo.php 217 B

12345678910111213
  1. <?php
  2. class Dumbo extends Eloquent {
  3. protected $table = "system";
  4. public function film() {
  5. return $this->belongsTo('Film', 'nextfilm');
  6. }
  7. public function scopeNextFilm($query) {
  8. return $query->find(1);
  9. }
  10. }