Files
w4rpservices/app/Library/Esi.php
drkthunder02 a201986ef7 added scopes view
added fleets displays
added scopes display
modified routes file
added Fleet file in class Library
modified Finances Controller
add EsiScopesController
laid out fleet framework file in class library
2018-11-07 03:00:06 -06:00

30 lines
522 B
PHP

<?php
use App\Models\CreateEsiScopes;
use DB;
class Esi {
/**
* Check if a scope is in the database for a particular character
*
* @param charId
* @param scope
*
* @return true,false
*/
public function CheckScope($charId, $scope) {
$checks = DB::table('EsiScopes')->where('character_id', $charId)->get();
foreach($checks as $check) {
if($check === $scope){
return true;
}
}
return false;
}
}
?>