You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
549 B

  1. <?php
  2. namespace App;
  3. use Illuminate\Database\Eloquent\Model;
  4. class Tweet extends Model
  5. {
  6. protected $fillable = [
  7. 'player_id', 'team_id', 'text', 'photo', 'claimed_at', 'processed', 'mission', 'tweet_date',
  8. 'm1_transit_line_id', 'm1_non_trimet',
  9. 'm2_transit_center_id', 'm2_with_other_team',
  10. 'm3_complete', 'm4_complete', 'm5_complete', 'm5_tip',
  11. 'm6_complete', 'm7_document_id'
  12. ];
  13. public static function queued() {
  14. return Tweet::whereNull('claimed_at')->where('processed', 0)->where('mission', '>', 0)->get();
  15. }
  16. }