Forked from tianvay/gist:af173c9c2a97f2a739de839b2d0d929a
Last active
June 25, 2018 12:33
-
-
Save riyuk/3c50efa88e89dccac13aa95fe4dc840d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public static function motd() | |
{ | |
$excludedMonsters = Monster::where(function($query) { | |
$query->where('awakens_from', 'NOT LIKE', '%Angelmon%') | |
->where('awakens_from', 'NOT LIKE', '%Rainbowmon%') | |
->where('awakens_from', 'NOT LIKE', '%Imperfect%') | |
->where('awakens_from', 'NOT LIKE', '%(Attack)%') | |
->where('awakens_from', 'NOT LIKE', '%(Support)%'); | |
}); | |
return $excludedMonsters->whereNotNull('article')->whereNotNull('awakens_from') | |
->inRandomOrder()->first(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Haste recht :)