Skip to content

Instantly share code, notes, and snippets.

View ddavaham's full-sized avatar
🎯
Focusing

David Davaham ddavaham

🎯
Focusing
View GitHub Profile
foreach ($killmails as $killId=>$kill) {
$bpk = 0;
if ($adjustments->has('character')) {
if ($adjustments->get('character')->has($kill->character_id)) {
$bpk += $adjustments->get('character')->get($kill->character_id);
}
}
if ($adjustments->has('corporation')) {
if ($adjustments->get('corporation')->has($kill->corporation_id)) {
<?php
namespace SUN\Models\ESI;
use Illuminate\Database\Eloquent\Model;
class Type extends Model
{
...
public function skillz()
CREATE TABLE `types` (
`id` INT(10) UNSIGNED NOT NULL,
`name` VARCHAR(255) NOT NULL COLLATE 'utf8_unicode_ci',
`description` TEXT NULL COLLATE 'utf8_unicode_ci',
`published` TINYINT(1) NOT NULL DEFAULT '0',
`group_id` INT(10) UNSIGNED NOT NULL DEFAULT '0',
`market_group_id` INT(10) UNSIGNED NULL DEFAULT NULL,
`volume` DOUBLE(12,4) NOT NULL DEFAULT '0.0000',
`price` DOUBLE(15,4) NOT NULL,
`packaged_volume` DOUBLE(13,4) NULL DEFAULT NULL,