diff --git a/src/Repositories/Eve/EveRepository.php b/src/Repositories/Eve/EveRepository.php index 9673b002..155a6b70 100644 --- a/src/Repositories/Eve/EveRepository.php +++ b/src/Repositories/Eve/EveRepository.php @@ -23,6 +23,7 @@ use Illuminate\Support\Facades\DB; use Seat\Eveapi\Models\Eve\RefTypes; +use Seat\Eveapi\Models\Server\ServerStatus; /** * Class EveRepository @@ -79,4 +80,16 @@ public function getEveTransactionTypes() return RefTypes::all(); } + + /** + * Get the last server status + * + * @return mixed + */ + public function getEveLastServerStatus() + { + + return ServerStatus::orderBy('created_at', 'desc') + ->first(); + } }