Skip to content

Commit

Permalink
Add server status method
Browse files Browse the repository at this point in the history
  • Loading branch information
leonjza committed Dec 4, 2015
1 parent f2172dc commit 717f9fb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Repositories/Eve/EveRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

use Illuminate\Support\Facades\DB;
use Seat\Eveapi\Models\Eve\RefTypes;
use Seat\Eveapi\Models\Server\ServerStatus;

/**
* Class EveRepository
Expand Down Expand Up @@ -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();
}
}

0 comments on commit 717f9fb

Please sign in to comment.