diff --git a/.gitignore b/.gitignore index 0f7df0fb..d1df871e 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ Homestead.json Homestead.yaml npm-debug.log yarn-error.log +.vagrant \ No newline at end of file diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 00000000..de4e6ba9 --- /dev/null +++ b/Vagrantfile @@ -0,0 +1,53 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +require 'json' +require 'yaml' + +VAGRANTFILE_API_VERSION ||= "2" +confDir = $confDir ||= File.expand_path("vendor/laravel/homestead", File.dirname(__FILE__)) + +homesteadYamlPath = File.expand_path("Homestead.yaml", File.dirname(__FILE__)) +homesteadJsonPath = File.expand_path("Homestead.json", File.dirname(__FILE__)) +afterScriptPath = "after.sh" +customizationScriptPath = "user-customizations.sh" +aliasesPath = "aliases" + +require File.expand_path(confDir + '/scripts/homestead.rb') + +Vagrant.require_version '>= 2.2.4' + +Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| + if File.exist? aliasesPath then + config.vm.provision "file", source: aliasesPath, destination: "/tmp/bash_aliases" + config.vm.provision "shell" do |s| + s.inline = "awk '{ sub(\"\r$\", \"\"); print }' /tmp/bash_aliases > /home/vagrant/.bash_aliases" + end + end + + if File.exist? homesteadYamlPath then + settings = YAML::load(File.read(homesteadYamlPath)) + elsif File.exist? homesteadJsonPath then + settings = JSON::parse(File.read(homesteadJsonPath)) + else + abort "Homestead settings file not found in " + File.dirname(__FILE__) + end + + Homestead.configure(config, settings) + + if File.exist? afterScriptPath then + config.vm.provision "shell", path: afterScriptPath, privileged: false, keep_color: true + end + + if File.exist? customizationScriptPath then + config.vm.provision "shell", path: customizationScriptPath, privileged: false, keep_color: true + end + + if Vagrant.has_plugin?('vagrant-hostsupdater') + config.hostsupdater.aliases = settings['sites'].map { |site| site['map'] } + elsif Vagrant.has_plugin?('vagrant-hostmanager') + config.hostmanager.enabled = true + config.hostmanager.manage_host = true + config.hostmanager.aliases = settings['sites'].map { |site| site['map'] } + end +end diff --git a/after.sh b/after.sh new file mode 100644 index 00000000..08c25e7f --- /dev/null +++ b/after.sh @@ -0,0 +1,26 @@ +#!/bin/sh + +# If you would like to do some extra provisioning you may +# add any commands you wish to this file and they will +# be run after the Homestead machine is provisioned. +# +# If you have user-specific configurations you would like +# to apply, you may also create user-customizations.sh, +# which will be run after this script. + +# If you're not quite ready for Node 12.x +# Uncomment these lines to roll back to +# v11.x or v10.x + +# Remove Node.js v12.x: +#sudo apt-get -y purge nodejs +#sudo rm -rf /usr/lib/node_modules/npm/lib +#sudo rm -rf //etc/apt/sources.list.d/nodesource.list + +# Install Node.js v11.x +#curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash - +#sudo apt-get install -y nodejs + +# Install Node.js v10.x +#curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - +#sudo apt-get install -y nodejs diff --git a/aliases b/aliases new file mode 100644 index 00000000..ba11c7c0 --- /dev/null +++ b/aliases @@ -0,0 +1,283 @@ +alias ..="cd .." +alias ...="cd ../.." + +alias h='cd ~' +alias c='clear' +alias art=artisan + +alias codecept='vendor/bin/codecept' +alias phpspec='vendor/bin/phpspec' +alias phpunit='vendor/bin/phpunit' +alias serve=serve-laravel + +alias xoff='sudo phpdismod -s cli xdebug' +alias xon='sudo phpenmod -s cli xdebug' + +function artisan() { + php artisan "$@" +} + +function dusk() { + pids=$(pidof /usr/bin/Xvfb) + + if [ ! -n "$pids" ]; then + Xvfb :0 -screen 0 1280x960x24 & + fi + + php artisan dusk --filter "$@" +} + +function php56() { + sudo update-alternatives --set php /usr/bin/php5.6 + sudo update-alternatives --set php-config /usr/bin/php-config5.6 + sudo update-alternatives --set phpize /usr/bin/phpize5.6 +} + +function php70() { + sudo update-alternatives --set php /usr/bin/php7.0 + sudo update-alternatives --set php-config /usr/bin/php-config7.0 + sudo update-alternatives --set phpize /usr/bin/phpize7.0 +} + +function php71() { + sudo update-alternatives --set php /usr/bin/php7.1 + sudo update-alternatives --set php-config /usr/bin/php-config7.1 + sudo update-alternatives --set phpize /usr/bin/phpize7.1 +} + +function php72() { + sudo update-alternatives --set php /usr/bin/php7.2 + sudo update-alternatives --set php-config /usr/bin/php-config7.2 + sudo update-alternatives --set phpize /usr/bin/phpize7.2 +} + +function php73() { + sudo update-alternatives --set php /usr/bin/php7.3 + sudo update-alternatives --set php-config /usr/bin/php-config7.3 + sudo update-alternatives --set phpize /usr/bin/phpize7.3 +} + +function php74() { + sudo update-alternatives --set php /usr/bin/php7.4 + sudo update-alternatives --set php-config /usr/bin/php-config7.4 + sudo update-alternatives --set phpize /usr/bin/phpize7.4 +} + +function serve-apache() { + if [[ "$1" && "$2" ]] + then + sudo bash /vagrant/vendor/laravel/homestead/scripts/create-certificate.sh "$1" + sudo dos2unix /vagrant/vendor/laravel/homestead/scripts/serve-apache.sh + sudo bash /vagrant/vendor/laravel/homestead/scripts/serve-apache.sh "$1" "$2" 80 443 "${3:-7.4}" + else + echo "Error: missing required parameters." + echo "Usage: " + echo " serve-apache domain path" + fi +} + +function serve-laravel() { + if [[ "$1" && "$2" ]] + then + sudo bash /vagrant/vendor/laravel/homestead/scripts/create-certificate.sh "$1" + sudo dos2unix /vagrant/vendor/laravel/homestead/scripts/serve-laravel.sh + sudo bash /vagrant/vendor/laravel/homestead/scripts/serve-laravel.sh "$1" "$2" 80 443 "${3:-7.4}" + else + echo "Error: missing required parameters." + echo "Usage: " + echo " serve domain path" + fi +} + +function serve-proxy() { + if [[ "$1" && "$2" ]] + then + sudo dos2unix /vagrant/vendor/laravel/homestead/scripts/serve-proxy.sh + sudo bash /vagrant/vendor/laravel/homestead/scripts/serve-proxy.sh "$1" "$2" 80 443 "${3:-7.4}" + else + echo "Error: missing required parameters." + echo "Usage: " + echo " serve-proxy domain port" + fi +} + +function serve-silverstripe() { + if [[ "$1" && "$2" ]] + then + sudo bash /vagrant/vendor/laravel/homestead/scripts/create-certificate.sh "$1" + sudo dos2unix /vagrant/vendor/laravel/homestead/scripts/serve-silverstripe.sh + sudo bash /vagrant/vendor/laravel/homestead/scripts/serve-silverstripe.sh "$1" "$2" 80 443 "${3:-7.4}" + else + echo "Error: missing required parameters." + echo "Usage: " + echo " serve-silverstripe domain path" + fi +} + +function serve-spa() { + if [[ "$1" && "$2" ]] + then + sudo bash /vagrant/vendor/laravel/homestead/scripts/create-certificate.sh "$1" + sudo dos2unix /vagrant/vendor/laravel/homestead/scripts/serve-spa.sh + sudo bash /vagrant/vendor/laravel/homestead/scripts/serve-spa.sh "$1" "$2" 80 443 "${3:-7.4}" + else + echo "Error: missing required parameters." + echo "Usage: " + echo " serve-spa domain path" + fi +} + +function serve-statamic() { + if [[ "$1" && "$2" ]] + then + sudo bash /vagrant/vendor/laravel/homestead/scripts/create-certificate.sh "$1" + sudo dos2unix /vagrant/vendor/laravel/homestead/scripts/serve-statamic.sh + sudo bash /vagrant/vendor/laravel/homestead/scripts/serve-statamic.sh "$1" "$2" 80 443 "${3:-7.4}" + else + echo "Error: missing required parameters." + echo "Usage: " + echo " serve-statamic domain path" + fi +} + +function serve-symfony2() { + if [[ "$1" && "$2" ]] + then + sudo bash /vagrant/vendor/laravel/homestead/scripts/create-certificate.sh "$1" + sudo dos2unix /vagrant/vendor/laravel/homestead/scripts/serve-symfony2.sh + sudo bash /vagrant/vendor/laravel/homestead/scripts/serve-symfony2.sh "$1" "$2" 80 443 "${3:-7.4}" + else + echo "Error: missing required parameters." + echo "Usage: " + echo " serve-symfony2 domain path" + fi +} + +function serve-symfony4() { + if [[ "$1" && "$2" ]] + then + sudo bash /vagrant/vendor/laravel/homestead/scripts/create-certificate.sh "$1" + sudo dos2unix /vagrant/vendor/laravel/homestead/scripts/serve-symfony4.sh + sudo bash /vagrant/vendor/laravel/homestead/scripts/serve-symfony4.sh "$1" "$2" 80 443 "${3:-7.4}" + else + echo "Error: missing required parameters." + echo "Usage: " + echo " serve-symfony4 domain path" + fi +} + +function serve-pimcore() { + if [[ "$1" && "$2" ]] + then + sudo bash /vagrant/vendor/laravel/homestead/scripts/create-certificate.sh "$1" + sudo dos2unix /vagrant/vendor/laravel/homestead/scripts/serve-pimcore.sh + sudo bash /vagrant/vendor/laravel/homestead/scripts/serve-pimcore.sh "$1" "$2" 80 443 "${3:-7.4}" + else + echo "Error: missing required parameters." + echo "Usage: " + echo " serve-pimcore domain path" + fi +} + +function share() { + if [[ "$1" ]] + then + ngrok http ${@:2} -host-header="$1" 80 + else + echo "Error: missing required parameters." + echo "Usage: " + echo " share domain" + echo "Invocation with extra params passed directly to ngrok" + echo " share domain -region=eu -subdomain=test1234" + fi +} + +function flip() { + sudo bash /vagrant/vendor/laravel/homestead/scripts/flip-webserver.sh +} + +function __has_pv() { + $(hash pv 2>/dev/null); + + return $? +} + +function __pv_install_message() { + if ! __has_pv; then + echo $1 + echo "Install pv with \`sudo apt-get install -y pv\` then run this command again." + echo "" + fi +} + +function dbexport() { + FILE=${1:-/vagrant/mysqldump.sql.gz} + + # This gives an estimate of the size of the SQL file + # It appears that 80% is a good approximation of + # the ratio of estimated size to actual size + SIZE_QUERY="select ceil(sum(data_length) * 0.8) as size from information_schema.TABLES" + + __pv_install_message "Want to see export progress?" + + echo "Exporting databases to '$FILE'" + + if __has_pv; then + ADJUSTED_SIZE=$(mysql --vertical -uhomestead -psecret -e "$SIZE_QUERY" 2>/dev/null | grep 'size' | awk '{print $2}') + HUMAN_READABLE_SIZE=$(numfmt --to=iec-i --suffix=B --format="%.3f" $ADJUSTED_SIZE) + + echo "Estimated uncompressed size: $HUMAN_READABLE_SIZE" + mysqldump -uhomestead -psecret --all-databases --skip-lock-tables --routines 2>/dev/null | pv --size=$ADJUSTED_SIZE | gzip > "$FILE" + else + mysqldump -uhomestead -psecret --all-databases --skip-lock-tables --routines 2>/dev/null | gzip > "$FILE" + fi + + echo "Done." +} + +function dbimport() { + FILE=${1:-/vagrant/mysqldump.sql.gz} + + __pv_install_message "Want to see import progress?" + + echo "Importing databases from '$FILE'" + + if __has_pv; then + pv "$FILE" --progress --eta | zcat | mysql -uhomestead -psecret 2>/dev/null + else + cat "$FILE" | zcat | mysql -uhomestead -psecret 2>/dev/null + fi + + echo "Done." +} + +function xphp() { + (php -m | grep -q xdebug) + if [[ $? -eq 0 ]] + then + XDEBUG_ENABLED=true + else + XDEBUG_ENABLED=false + fi + + if ! $XDEBUG_ENABLED; then xon; fi + + php \ + -dxdebug.remote_host=192.168.10.1 \ + -dxdebug.remote_autostart=1 \ + "$@" + + if ! $XDEBUG_ENABLED; then xoff; fi +} + +function update-socket-wrench() { + cd /var/www/socket-wrench + git pull origin release + composer install + php artisan migrate --force +} + +function seed-socket-wrench() { + cd /var/www/socket-wrench + php artisan db:seed +} diff --git a/app/Boss/AbyssalSire.php b/app/Boss/AbyssalSire.php index 038d0cfe..787e6e29 100644 --- a/app/Boss/AbyssalSire.php +++ b/app/Boss/AbyssalSire.php @@ -6,6 +6,8 @@ class AbyssalSire extends Model { + protected $table = 'abyssal_sire'; + protected $fillable = [ 'obtained', 'kill_count', diff --git a/app/Boss/AlchemicalHydra.php b/app/Boss/AlchemicalHydra.php index ff1ddd8b..24b03b0c 100644 --- a/app/Boss/AlchemicalHydra.php +++ b/app/Boss/AlchemicalHydra.php @@ -6,6 +6,8 @@ class AlchemicalHydra extends Model { + protected $table = 'alchemical_hydra'; + protected $fillable = [ 'obtained', 'kill_count', diff --git a/app/Boss/BarrowsChests.php b/app/Boss/BarrowsChests.php index 3a0c9ba1..95bc1374 100644 --- a/app/Boss/BarrowsChests.php +++ b/app/Boss/BarrowsChests.php @@ -6,6 +6,8 @@ class BarrowsChests extends Model { + protected $table = 'barrows_chests'; + protected $fillable = [ 'obtained', 'kill_count', diff --git a/app/Boss/Bryophyta.php b/app/Boss/Bryophyta.php index e25b5964..f784ef8b 100644 --- a/app/Boss/Bryophyta.php +++ b/app/Boss/Bryophyta.php @@ -6,6 +6,8 @@ class Bryophyta extends Model { + protected $table = 'bryophyta'; + protected $fillable = [ 'obtained', 'kill_count', diff --git a/app/Boss/Callisto.php b/app/Boss/Callisto.php index bb480642..566bf483 100644 --- a/app/Boss/Callisto.php +++ b/app/Boss/Callisto.php @@ -6,6 +6,8 @@ class Callisto extends Model { + protected $table = 'callisto'; + protected $fillable = [ 'obtained', 'kill_count', diff --git a/app/Boss/Cerberus.php b/app/Boss/Cerberus.php index ea1aa609..f7af12b9 100644 --- a/app/Boss/Cerberus.php +++ b/app/Boss/Cerberus.php @@ -6,6 +6,8 @@ class Cerberus extends Model { + protected $table = 'cerberus'; + protected $fillable = [ 'obtained', 'kill_count', diff --git a/app/Boss/ChaosElemental.php b/app/Boss/ChaosElemental.php index 7d5dc7ce..c6502d2a 100644 --- a/app/Boss/ChaosElemental.php +++ b/app/Boss/ChaosElemental.php @@ -6,6 +6,8 @@ class ChaosElemental extends Model { + protected $table = 'chaos_elemental'; + protected $fillable = [ 'obtained', 'kill_count', diff --git a/app/Boss/ChaosFanatic.php b/app/Boss/ChaosFanatic.php index c8160743..ea86a0c3 100644 --- a/app/Boss/ChaosFanatic.php +++ b/app/Boss/ChaosFanatic.php @@ -6,6 +6,8 @@ class ChaosFanatic extends Model { + protected $table = 'chaos_fanatic'; + protected $fillable = [ 'obtained', 'kill_count', diff --git a/app/Boss/CommanderZilyana.php b/app/Boss/CommanderZilyana.php index d0372a5c..d216e0e2 100644 --- a/app/Boss/CommanderZilyana.php +++ b/app/Boss/CommanderZilyana.php @@ -6,6 +6,8 @@ class CommanderZilyana extends Model { + protected $table = 'commander_zilyana'; + protected $fillable = [ 'obtained', 'kill_count', diff --git a/app/Boss/CorporealBeast.php b/app/Boss/CorporealBeast.php index c7459d69..023a1dc7 100644 --- a/app/Boss/CorporealBeast.php +++ b/app/Boss/CorporealBeast.php @@ -6,6 +6,8 @@ class CorporealBeast extends Model { + protected $table = 'corporeal_beast'; + protected $fillable = [ 'obtained', 'kill_count', diff --git a/app/Boss/CrazyArchaeologist.php b/app/Boss/CrazyArchaeologist.php index 1b465289..572e77e0 100644 --- a/app/Boss/CrazyArchaeologist.php +++ b/app/Boss/CrazyArchaeologist.php @@ -6,6 +6,8 @@ class CrazyArchaeologist extends Model { + protected $table = 'crazy_archaeologist'; + protected $fillable = [ 'obtained', 'kill_count', diff --git a/app/Boss/DagannothKings.php b/app/Boss/DagannothKings.php index b411b0ab..9f84090f 100644 --- a/app/Boss/DagannothKings.php +++ b/app/Boss/DagannothKings.php @@ -6,6 +6,8 @@ class DagannothKings extends Model { + protected $table = 'dagannoth_kings'; + protected $fillable = [ 'obtained', 'kill_count', diff --git a/app/Boss/GeneralGraardor.php b/app/Boss/GeneralGraardor.php index 75b3949d..049497c4 100644 --- a/app/Boss/GeneralGraardor.php +++ b/app/Boss/GeneralGraardor.php @@ -6,6 +6,8 @@ class GeneralGraardor extends Model { + protected $table = 'general_graardor'; + protected $fillable = [ 'obtained', 'kill_count', diff --git a/app/Boss/GiantMole.php b/app/Boss/GiantMole.php index 7e9d0971..0cf5fb3c 100644 --- a/app/Boss/GiantMole.php +++ b/app/Boss/GiantMole.php @@ -6,6 +6,8 @@ class GiantMole extends Model { + protected $table = 'giant_mole'; + protected $fillable = [ 'obtained', 'kill_count', diff --git a/app/Boss/Goblin.php b/app/Boss/Goblin.php new file mode 100644 index 00000000..0b02266b --- /dev/null +++ b/app/Boss/Goblin.php @@ -0,0 +1,23 @@ +getUser($request->header('uuid')); + + if ($user) { + $boss = Collection::findByName($bossName); + + if ($boss) { + $bossLog = $this->getUserBossLog($boss->collection_type, $user->id); + + if ($bossLog) { + $oldValues = $bossLog->getAttributes(); // Get old data + //array_splice($oldValues, count($oldValues) - 2, 2); // Remove created_at and updated_at + + $newValues = $request->all(); + + $sums = []; + + $sums["kill_count"] = $oldValues["kill_count"] + 1; + + $uniques = $oldValues["obtained"]; + + // Merge old data and new data and sum the total of common keys + foreach (array_keys($newValues + $oldValues) as $lootType) { + if (isset($newValues[$lootType]) && isset($oldValues[$lootType])) { + // If unique loot is detected, increase the total amount of uniques obtained by 1 + if ($oldValues[$lootType] == 0) { + $uniques++; + } + + $sums[$lootType] = (isset($newValues[$lootType]) ? $newValues[$lootType] : 0) + (isset($oldValues) ? $oldValues[$lootType] : 0); + } + } + + $sums["obtained"] = $uniques; + + $bossLog->update($sums); + + return response()->json($bossLog, 201); + } else { + return response()->json("This user does not have any registered loot for this boss", 404); + } + } else { + return response()->json("This boss does not exist", 404); + } + } else { + return response()->json("This user could not be found", 404); + } + } + + private function getUser($uuid) { + return User::where('uuid', $uuid)->first(); + } + + private function getUserBossLog($boss, $userId) { + return $boss::where('user_id', $userId)->first(); + } +} diff --git a/app/Http/Controllers/CollectionController.php b/app/Http/Controllers/CollectionController.php index 1946522a..25ae0da6 100644 --- a/app/Http/Controllers/CollectionController.php +++ b/app/Http/Controllers/CollectionController.php @@ -16,6 +16,11 @@ class CollectionController extends Controller { + public function bossList(Request $request) { + $allCollections = Collection::select('name')->get(); + return response()->json($allCollections, 200); + } + public function index(Request $request) { $user = $this->getUser($request->header('uuid')); @@ -62,14 +67,20 @@ public function show($collectionName, Request $request) { if ($user) { $collection = Collection::findByName($collectionName); - $collectionLog = $this->getUserCollectionLog($collection->collection_type, $user->id); + if ($collection) { + $collectionLog = $this->getUserCollectionLog($collection->collection_type, $user->id); - if ($collectionLog) { - return response()->json($collectionLog, 200); - } else { - $test = $this->store($collectionName, $user->id); + if ($collectionLog) { + return response()->json($collectionLog, 200); + } else { + // return response()->json("This user does not have any registered loot for this collection", 404); + + $test = $this->store($collectionName, $user->id); - return response()->json($test, 201); + return response()->json($test, 201); + } + } else { + return response()->json("This collection does not exist", 404); } } else { return response()->json("This user could not be found", 404); @@ -89,23 +100,7 @@ private function store($collectionName, $userId) { } public function update($collectionName, Request $request) { - $user = $this->getUser($request->header('uuid')); - - if ($user) { - $collection = Collection::findByName($collectionName); - - $collectionLog = $this->getUserCollectionLog($collection->collection_type, $user->id); - - if ($collectionLog) { - $collectionLog->update($request->all()); - - return response()->json($collectionLog, 201); - } else { - return response()->json("This user does not have any registered loot for this collection", 404); - } - } else { - return response()->json("This user could not be found", 404); - } + // TODO collection log updater } private function getUser($uuid) { diff --git a/composer.json b/composer.json index 381c5bae..4c63028f 100644 --- a/composer.json +++ b/composer.json @@ -19,6 +19,7 @@ "require-dev": { "facade/ignition": "^2.0", "fzaninotto/faker": "^1.9.1", + "laravel/homestead": "^11.0", "mockery/mockery": "^1.3.1", "nunomaduro/collision": "^4.1", "phpunit/phpunit": "^8.5" diff --git a/composer.lock b/composer.lock index 487fe1cf..40dd1ae4 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "f0dcbdc80776ca79d6311b8f92c5a4b5", + "content-hash": "bd8320171484a9faab0c0543bcd46c97", "packages": [ { "name": "asm89/stack-cors", @@ -102,6 +102,12 @@ "brick", "math" ], + "funding": [ + { + "url": "https://tidelift.com/funding/github/packagist/brick/math", + "type": "tidelift" + } + ], "time": "2020-04-15T15:59:35+00:00" }, { @@ -212,6 +218,20 @@ "uppercase", "words" ], + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finflector", + "type": "tidelift" + } + ], "time": "2020-05-29T15:13:26+00:00" }, { @@ -274,6 +294,20 @@ "parser", "php" ], + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Flexer", + "type": "tidelift" + } + ], "time": "2020-05-25T17:44:05+00:00" }, { @@ -508,6 +542,12 @@ "crossdomain", "laravel" ], + "funding": [ + { + "url": "https://github.com/barryvdh", + "type": "github" + } + ], "time": "2020-04-28T08:47:37+00:00" }, { @@ -1042,6 +1082,32 @@ "md", "parser" ], + "funding": [ + { + "url": "https://enjoy.gitstore.app/repositories/thephpleague/commonmark", + "type": "custom" + }, + { + "url": "https://www.colinodell.com/sponsor", + "type": "custom" + }, + { + "url": "https://www.paypal.me/colinpodell/10.00", + "type": "custom" + }, + { + "url": "https://github.com/colinodell", + "type": "github" + }, + { + "url": "https://www.patreon.com/colinodell", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/league/commonmark", + "type": "tidelift" + } + ], "time": "2020-06-21T20:50:13+00:00" }, { @@ -1126,6 +1192,12 @@ "sftp", "storage" ], + "funding": [ + { + "url": "https://offset.earth/frankdejonge", + "type": "other" + } + ], "time": "2020-05-18T15:13:39+00:00" }, { @@ -1207,6 +1279,16 @@ "logging", "psr-3" ], + "funding": [ + { + "url": "https://github.com/Seldaek", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/monolog/monolog", + "type": "tidelift" + } + ], "time": "2020-05-22T08:12:19+00:00" }, { @@ -1280,6 +1362,16 @@ "datetime", "time" ], + "funding": [ + { + "url": "https://opencollective.com/Carbon", + "type": "open_collective" + }, + { + "url": "https://tidelift.com/funding/github/packagist/nesbot/carbon", + "type": "tidelift" + } + ], "time": "2020-05-24T18:27:52+00:00" }, { @@ -1448,6 +1540,16 @@ "php", "type" ], + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpoption/phpoption", + "type": "tidelift" + } + ], "time": "2020-06-07T10:40:07+00:00" }, { @@ -1942,6 +2044,12 @@ "identifier", "uuid" ], + "funding": [ + { + "url": "https://github.com/ramsey", + "type": "github" + } + ], "time": "2020-03-29T20:13:32+00:00" }, { @@ -2083,6 +2191,20 @@ ], "description": "Symfony Console Component", "homepage": "https://symfony.com", + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-06-15T12:59:21+00:00" }, { @@ -2136,6 +2258,20 @@ ], "description": "Symfony CssSelector Component", "homepage": "https://symfony.com", + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-05-20T17:43:50+00:00" }, { @@ -2182,6 +2318,20 @@ ], "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-05-27T08:34:37+00:00" }, { @@ -2239,6 +2389,20 @@ ], "description": "Symfony ErrorHandler Component", "homepage": "https://symfony.com", + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-05-30T20:35:19+00:00" }, { @@ -2311,6 +2475,20 @@ ], "description": "Symfony EventDispatcher Component", "homepage": "https://symfony.com", + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-05-20T17:43:50+00:00" }, { @@ -2369,6 +2547,20 @@ "interoperability", "standards" ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-05-20T17:43:50+00:00" }, { @@ -2418,6 +2610,20 @@ ], "description": "Symfony Finder Component", "homepage": "https://symfony.com", + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-05-20T17:43:50+00:00" }, { @@ -2479,6 +2685,20 @@ ], "description": "Symfony HttpFoundation Component", "homepage": "https://symfony.com", + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-06-15T06:52:54+00:00" }, { @@ -2578,6 +2798,20 @@ ], "description": "Symfony HttpKernel Component", "homepage": "https://symfony.com", + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-06-15T13:51:38+00:00" }, { @@ -2641,6 +2875,20 @@ "mime", "mime-type" ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-06-09T15:07:35+00:00" }, { @@ -2699,6 +2947,20 @@ "polyfill", "portable" ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-05-12T16:14:59+00:00" }, { @@ -2758,6 +3020,20 @@ "portable", "shim" ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-05-12T16:47:27+00:00" }, { @@ -2818,6 +3094,20 @@ "portable", "shim" ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-05-12T16:47:27+00:00" }, { @@ -2880,6 +3170,20 @@ "portable", "shim" ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-05-12T16:47:27+00:00" }, { @@ -2943,6 +3247,20 @@ "portable", "shim" ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-05-12T16:14:59+00:00" }, { @@ -3002,6 +3320,20 @@ "portable", "shim" ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-05-12T16:47:27+00:00" }, { @@ -3057,6 +3389,20 @@ "portable", "shim" ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-05-12T16:47:27+00:00" }, { @@ -3115,6 +3461,20 @@ "portable", "shim" ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-05-12T16:47:27+00:00" }, { @@ -3177,6 +3537,20 @@ "portable", "shim" ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-05-12T16:47:27+00:00" }, { @@ -3227,6 +3601,20 @@ ], "description": "Symfony Process Component", "homepage": "https://symfony.com", + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-05-30T20:35:19+00:00" }, { @@ -3305,6 +3693,20 @@ "uri", "url" ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-06-10T11:49:58+00:00" }, { @@ -3363,6 +3765,20 @@ "interoperability", "standards" ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-05-20T17:43:50+00:00" }, { @@ -3434,6 +3850,20 @@ "utf-8", "utf8" ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-06-11T12:16:36+00:00" }, { @@ -3512,6 +3942,20 @@ ], "description": "Symfony Translation Component", "homepage": "https://symfony.com", + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-05-30T20:35:19+00:00" }, { @@ -3569,6 +4013,20 @@ "interoperability", "standards" ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-05-20T17:43:50+00:00" }, { @@ -3645,6 +4103,20 @@ "debug", "dump" ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-05-30T20:35:19+00:00" }, { @@ -3758,6 +4230,16 @@ "env", "environment" ], + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/vlucas/phpdotenv", + "type": "tidelift" + } + ], "time": "2020-06-07T18:25:35+00:00" }, { @@ -3806,6 +4288,24 @@ "clean", "php" ], + "funding": [ + { + "url": "https://www.paypal.me/moelleken", + "type": "custom" + }, + { + "url": "https://github.com/voku", + "type": "github" + }, + { + "url": "https://www.patreon.com/voku", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/voku/portable-ascii", + "type": "tidelift" + } + ], "time": "2020-06-15T23:49:30+00:00" } ], @@ -3864,6 +4364,20 @@ "constructor", "instantiate" ], + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator", + "type": "tidelift" + } + ], "time": "2020-05-29T17:27:14+00:00" }, { @@ -3918,6 +4432,12 @@ "flare", "reporting" ], + "funding": [ + { + "url": "https://www.patreon.com/spatie", + "type": "patreon" + } + ], "time": "2020-03-02T15:52:04+00:00" }, { @@ -4194,6 +4714,51 @@ ], "time": "2016-01-20T08:20:44+00:00" }, + { + "name": "laravel/homestead", + "version": "v11.0.2", + "source": { + "type": "git", + "url": "https://github.com/laravel/homestead.git", + "reference": "24408631240e5835ef9e497470c733d7540922e0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/homestead/zipball/24408631240e5835ef9e497470c733d7540922e0", + "reference": "24408631240e5835ef9e497470c733d7540922e0", + "shasum": "" + }, + "require": { + "php": "^7.1", + "symfony/console": "~3.0||~4.0||~5.0", + "symfony/process": "~3.0||~4.0||~5.0", + "symfony/yaml": "~3.0||~4.0||~5.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0" + }, + "bin": [ + "bin/homestead" + ], + "type": "library", + "autoload": { + "psr-4": { + "Laravel\\Homestead\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "A virtual machine for web artisans.", + "time": "2020-08-12T14:42:35+00:00" + }, { "name": "mockery/mockery", "version": "1.3.1", @@ -4375,6 +4940,20 @@ "php", "symfony" ], + "funding": [ + { + "url": "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=66BYDWAT92N6L", + "type": "custom" + }, + { + "url": "https://github.com/nunomaduro", + "type": "github" + }, + { + "url": "https://www.patreon.com/nunomaduro", + "type": "patreon" + } + ], "time": "2020-04-04T19:56:08+00:00" }, { @@ -4940,6 +5519,7 @@ "keywords": [ "tokenizer" ], + "abandoned": true, "time": "2019-09-17T06:23:10+00:00" }, { @@ -5023,6 +5603,16 @@ "testing", "xunit" ], + "funding": [ + { + "url": "https://phpunit.de/donate.html", + "type": "custom" + }, + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], "time": "2020-06-21T06:32:54+00:00" }, { @@ -5092,6 +5682,12 @@ "highlight.php", "syntax" ], + "funding": [ + { + "url": "https://github.com/allejo", + "type": "github" + } + ], "time": "2020-03-02T05:59:21+00:00" }, { @@ -5709,6 +6305,83 @@ "homepage": "https://github.com/sebastianbergmann/version", "time": "2016-10-03T07:35:21+00:00" }, + { + "name": "symfony/yaml", + "version": "v5.1.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/yaml.git", + "reference": "ea342353a3ef4f453809acc4ebc55382231d4d23" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/yaml/zipball/ea342353a3ef4f453809acc4ebc55382231d4d23", + "reference": "ea342353a3ef4f453809acc4ebc55382231d4d23", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1", + "symfony/polyfill-ctype": "~1.8" + }, + "conflict": { + "symfony/console": "<4.4" + }, + "require-dev": { + "symfony/console": "^4.4|^5.0" + }, + "suggest": { + "symfony/console": "For validating YAML files using the lint command" + }, + "bin": [ + "Resources/bin/yaml-lint" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.1-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Yaml\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony Yaml Component", + "homepage": "https://symfony.com", + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-05-20T17:43:50+00:00" + }, { "name": "theseer/tokenizer", "version": "1.1.3", @@ -5807,5 +6480,6 @@ "platform": { "php": "^7.2.5" }, - "platform-dev": [] + "platform-dev": [], + "plugin-api-version": "1.1.0" } diff --git a/database/migrations/2020_07_05_133123_create_abyssal_sires_table.php b/database/migrations/2020_08_03_230720_create_abyssal_sire_table.php similarity index 88% rename from database/migrations/2020_07_05_133123_create_abyssal_sires_table.php rename to database/migrations/2020_08_03_230720_create_abyssal_sire_table.php index 7b1092fc..d3ee1577 100644 --- a/database/migrations/2020_07_05_133123_create_abyssal_sires_table.php +++ b/database/migrations/2020_08_03_230720_create_abyssal_sire_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateAbyssalSiresTable extends Migration +class CreateAbyssalSireTable extends Migration { /** * Run the migrations. @@ -13,7 +13,7 @@ class CreateAbyssalSiresTable extends Migration */ public function up() { - Schema::create('abyssal_sires', function (Blueprint $table) { + Schema::create('abyssal_sire', function (Blueprint $table) { $table->id(); $table->integer('user_id')->unsigned()->unique(); $table->integer('obtained')->default(0)->unsigned(); @@ -38,6 +38,6 @@ public function up() */ public function down() { - Schema::dropIfExists('abyssal_sires'); + Schema::dropIfExists('abyssal_sire'); } } diff --git a/database/migrations/2020_07_05_133123_create_alchemical_hydras_table.php b/database/migrations/2020_08_03_230721_create_alchemical_hydra_table.php similarity index 88% rename from database/migrations/2020_07_05_133123_create_alchemical_hydras_table.php rename to database/migrations/2020_08_03_230721_create_alchemical_hydra_table.php index 0e23473d..c01e1804 100644 --- a/database/migrations/2020_07_05_133123_create_alchemical_hydras_table.php +++ b/database/migrations/2020_08_03_230721_create_alchemical_hydra_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateAlchemicalHydrasTable extends Migration +class CreateAlchemicalHydraTable extends Migration { /** * Run the migrations. @@ -13,7 +13,7 @@ class CreateAlchemicalHydrasTable extends Migration */ public function up() { - Schema::create('alchemical_hydras', function (Blueprint $table) { + Schema::create('alchemical_hydra', function (Blueprint $table) { $table->id(); $table->integer('user_id')->unsigned()->unique(); $table->integer('obtained')->default(0)->unsigned(); @@ -40,6 +40,6 @@ public function up() */ public function down() { - Schema::dropIfExists('alchemical_hydras'); + Schema::dropIfExists('alchemical_hydra'); } } diff --git a/database/migrations/2020_07_05_133123_create_barrows_chests_table.php b/database/migrations/2020_08_03_230721_create_barrows_chests_table.php similarity index 100% rename from database/migrations/2020_07_05_133123_create_barrows_chests_table.php rename to database/migrations/2020_08_03_230721_create_barrows_chests_table.php diff --git a/database/migrations/2020_07_05_133124_create_bryophytas_table.php b/database/migrations/2020_08_03_230721_create_bryophyta_table.php similarity index 81% rename from database/migrations/2020_07_05_133124_create_bryophytas_table.php rename to database/migrations/2020_08_03_230721_create_bryophyta_table.php index 0d45c7db..e7f3b988 100644 --- a/database/migrations/2020_07_05_133124_create_bryophytas_table.php +++ b/database/migrations/2020_08_03_230721_create_bryophyta_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateBryophytasTable extends Migration +class CreateBryophytaTable extends Migration { /** * Run the migrations. @@ -13,7 +13,7 @@ class CreateBryophytasTable extends Migration */ public function up() { - Schema::create('bryophytas', function (Blueprint $table) { + Schema::create('bryophyta', function (Blueprint $table) { $table->id(); $table->integer('user_id')->unsigned()->unique(); $table->integer('obtained')->default(0)->unsigned(); @@ -30,6 +30,6 @@ public function up() */ public function down() { - Schema::dropIfExists('bryophytas'); + Schema::dropIfExists('bryophyta'); } } diff --git a/database/migrations/2020_07_05_133124_create_callistos_table.php b/database/migrations/2020_08_03_230721_create_callisto_table.php similarity index 85% rename from database/migrations/2020_07_05_133124_create_callistos_table.php rename to database/migrations/2020_08_03_230721_create_callisto_table.php index 8d061bcf..e35b5191 100644 --- a/database/migrations/2020_07_05_133124_create_callistos_table.php +++ b/database/migrations/2020_08_03_230721_create_callisto_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateCallistosTable extends Migration +class CreateCallistoTable extends Migration { /** * Run the migrations. @@ -13,7 +13,7 @@ class CreateCallistosTable extends Migration */ public function up() { - Schema::create('callistos', function (Blueprint $table) { + Schema::create('callisto', function (Blueprint $table) { $table->id(); $table->integer('user_id')->unsigned()->unique(); $table->integer('obtained')->default(0)->unsigned(); @@ -33,6 +33,6 @@ public function up() */ public function down() { - Schema::dropIfExists('callistos'); + Schema::dropIfExists('callisto'); } } diff --git a/database/migrations/2020_07_05_133124_create_cerberus_table.php b/database/migrations/2020_08_03_230721_create_cerberus_table.php similarity index 100% rename from database/migrations/2020_07_05_133124_create_cerberus_table.php rename to database/migrations/2020_08_03_230721_create_cerberus_table.php diff --git a/database/migrations/2020_07_05_133124_create_chaos_elementals_table.php b/database/migrations/2020_08_03_230722_create_chaos_elemental_table.php similarity index 82% rename from database/migrations/2020_07_05_133124_create_chaos_elementals_table.php rename to database/migrations/2020_08_03_230722_create_chaos_elemental_table.php index 7790735e..694b11e6 100644 --- a/database/migrations/2020_07_05_133124_create_chaos_elementals_table.php +++ b/database/migrations/2020_08_03_230722_create_chaos_elemental_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateChaosElementalsTable extends Migration +class CreateChaosElementalTable extends Migration { /** * Run the migrations. @@ -13,7 +13,7 @@ class CreateChaosElementalsTable extends Migration */ public function up() { - Schema::create('chaos_elementals', function (Blueprint $table) { + Schema::create('chaos_elemental', function (Blueprint $table) { $table->id(); $table->integer('user_id')->unsigned()->unique(); $table->integer('obtained')->default(0)->unsigned(); @@ -32,6 +32,6 @@ public function up() */ public function down() { - Schema::dropIfExists('chaos_elementals'); + Schema::dropIfExists('chaos_elemental'); } } diff --git a/database/migrations/2020_07_05_133125_create_chaos_fanatics_table.php b/database/migrations/2020_08_03_230722_create_chaos_fanatic_table.php similarity index 83% rename from database/migrations/2020_07_05_133125_create_chaos_fanatics_table.php rename to database/migrations/2020_08_03_230722_create_chaos_fanatic_table.php index a4c1603b..a7c6ed59 100644 --- a/database/migrations/2020_07_05_133125_create_chaos_fanatics_table.php +++ b/database/migrations/2020_08_03_230722_create_chaos_fanatic_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateChaosFanaticsTable extends Migration +class CreateChaosFanaticTable extends Migration { /** * Run the migrations. @@ -13,7 +13,7 @@ class CreateChaosFanaticsTable extends Migration */ public function up() { - Schema::create('chaos_fanatics', function (Blueprint $table) { + Schema::create('chaos_fanatic', function (Blueprint $table) { $table->id(); $table->integer('user_id')->unsigned()->unique(); $table->integer('obtained')->default(0)->unsigned(); @@ -32,6 +32,6 @@ public function up() */ public function down() { - Schema::dropIfExists('chaos_fanatics'); + Schema::dropIfExists('chaos_fanatic'); } } diff --git a/database/migrations/2020_07_05_133125_create_commander_zilyanas_table.php b/database/migrations/2020_08_03_230722_create_commander_zilyana_table.php similarity index 86% rename from database/migrations/2020_07_05_133125_create_commander_zilyanas_table.php rename to database/migrations/2020_08_03_230722_create_commander_zilyana_table.php index b392d0df..e90cf774 100644 --- a/database/migrations/2020_07_05_133125_create_commander_zilyanas_table.php +++ b/database/migrations/2020_08_03_230722_create_commander_zilyana_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateCommanderZilyanasTable extends Migration +class CreateCommanderZilyanaTable extends Migration { /** * Run the migrations. @@ -13,7 +13,7 @@ class CreateCommanderZilyanasTable extends Migration */ public function up() { - Schema::create('commander_zilyanas', function (Blueprint $table) { + Schema::create('commander_zilyana', function (Blueprint $table) { $table->id(); $table->integer('user_id')->unsigned()->unique(); $table->integer('obtained')->default(0)->unsigned(); @@ -37,6 +37,6 @@ public function up() */ public function down() { - Schema::dropIfExists('commander_zilyanas'); + Schema::dropIfExists('commander_zilyana'); } } diff --git a/database/migrations/2020_07_05_133125_create_corporeal_beasts_table.php b/database/migrations/2020_08_03_230722_create_corporeal_beast_table.php similarity index 85% rename from database/migrations/2020_07_05_133125_create_corporeal_beasts_table.php rename to database/migrations/2020_08_03_230722_create_corporeal_beast_table.php index 340a0032..e93143dd 100644 --- a/database/migrations/2020_07_05_133125_create_corporeal_beasts_table.php +++ b/database/migrations/2020_08_03_230722_create_corporeal_beast_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateCorporealBeastsTable extends Migration +class CreateCorporealBeastTable extends Migration { /** * Run the migrations. @@ -13,7 +13,7 @@ class CreateCorporealBeastsTable extends Migration */ public function up() { - Schema::create('corporeal_beasts', function (Blueprint $table) { + Schema::create('corporeal_beast', function (Blueprint $table) { $table->id(); $table->integer('user_id')->unsigned()->unique(); $table->integer('obtained')->default(0)->unsigned(); @@ -35,6 +35,6 @@ public function up() */ public function down() { - Schema::dropIfExists('corporeal_beasts'); + Schema::dropIfExists('corporeal_beast'); } } diff --git a/database/migrations/2020_07_05_133125_create_crazy_archaeologists_table.php b/database/migrations/2020_08_03_230722_create_crazy_archaeologist_table.php similarity index 81% rename from database/migrations/2020_07_05_133125_create_crazy_archaeologists_table.php rename to database/migrations/2020_08_03_230722_create_crazy_archaeologist_table.php index 78991e7d..a7c0a8b9 100644 --- a/database/migrations/2020_07_05_133125_create_crazy_archaeologists_table.php +++ b/database/migrations/2020_08_03_230722_create_crazy_archaeologist_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateCrazyArchaeologistsTable extends Migration +class CreateCrazyArchaeologistTable extends Migration { /** * Run the migrations. @@ -13,7 +13,7 @@ class CreateCrazyArchaeologistsTable extends Migration */ public function up() { - Schema::create('crazy_archaeologists', function (Blueprint $table) { + Schema::create('crazy_archaeologist', function (Blueprint $table) { $table->id(); $table->integer('user_id')->unsigned()->unique(); $table->integer('obtained')->default(0)->unsigned(); @@ -32,6 +32,6 @@ public function up() */ public function down() { - Schema::dropIfExists('crazy_archaeologists'); + Schema::dropIfExists('crazy_archaeologist'); } } diff --git a/database/migrations/2020_07_05_133125_create_dagannoth_kings_table.php b/database/migrations/2020_08_03_230723_create_dagannoth_kings_table.php similarity index 100% rename from database/migrations/2020_07_05_133125_create_dagannoth_kings_table.php rename to database/migrations/2020_08_03_230723_create_dagannoth_kings_table.php diff --git a/database/migrations/2020_07_05_133126_create_general_graardors_table.php b/database/migrations/2020_08_03_230723_create_general_graardor_table.php similarity index 87% rename from database/migrations/2020_07_05_133126_create_general_graardors_table.php rename to database/migrations/2020_08_03_230723_create_general_graardor_table.php index 31950062..730ec37d 100644 --- a/database/migrations/2020_07_05_133126_create_general_graardors_table.php +++ b/database/migrations/2020_08_03_230723_create_general_graardor_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateGeneralGraardorsTable extends Migration +class CreateGeneralGraardorTable extends Migration { /** * Run the migrations. @@ -13,7 +13,7 @@ class CreateGeneralGraardorsTable extends Migration */ public function up() { - Schema::create('general_graardors', function (Blueprint $table) { + Schema::create('general_graardor', function (Blueprint $table) { $table->id(); $table->integer('user_id')->unsigned()->unique(); $table->integer('obtained')->default(0)->unsigned(); @@ -37,6 +37,6 @@ public function up() */ public function down() { - Schema::dropIfExists('general_graardors'); + Schema::dropIfExists('general_graardor'); } } diff --git a/database/migrations/2020_07_05_133126_create_giant_moles_table.php b/database/migrations/2020_08_03_230723_create_giant_mole_table.php similarity index 83% rename from database/migrations/2020_07_05_133126_create_giant_moles_table.php rename to database/migrations/2020_08_03_230723_create_giant_mole_table.php index 4ef1cdb2..2efb93ba 100644 --- a/database/migrations/2020_07_05_133126_create_giant_moles_table.php +++ b/database/migrations/2020_08_03_230723_create_giant_mole_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateGiantMolesTable extends Migration +class CreateGiantMoleTable extends Migration { /** * Run the migrations. @@ -13,7 +13,7 @@ class CreateGiantMolesTable extends Migration */ public function up() { - Schema::create('giant_moles', function (Blueprint $table) { + Schema::create('giant_mole', function (Blueprint $table) { $table->id(); $table->integer('user_id')->unsigned()->unique(); $table->integer('obtained')->default(0)->unsigned(); @@ -32,6 +32,6 @@ public function up() */ public function down() { - Schema::dropIfExists('giant_moles'); + Schema::dropIfExists('giant_mole'); } } diff --git a/database/migrations/2020_07_05_133126_create_grotesque_guardians_table.php b/database/migrations/2020_08_03_230723_create_grotesque_guardians_table.php similarity index 100% rename from database/migrations/2020_07_05_133126_create_grotesque_guardians_table.php rename to database/migrations/2020_08_03_230723_create_grotesque_guardians_table.php diff --git a/database/migrations/2020_07_05_133126_create_hesporis_table.php b/database/migrations/2020_08_03_230724_create_hespori_table.php similarity index 85% rename from database/migrations/2020_07_05_133126_create_hesporis_table.php rename to database/migrations/2020_08_03_230724_create_hespori_table.php index 458276e1..0623f432 100644 --- a/database/migrations/2020_07_05_133126_create_hesporis_table.php +++ b/database/migrations/2020_08_03_230724_create_hespori_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateHesporisTable extends Migration +class CreateHesporiTable extends Migration { /** * Run the migrations. @@ -13,7 +13,7 @@ class CreateHesporisTable extends Migration */ public function up() { - Schema::create('hesporis', function (Blueprint $table) { + Schema::create('hespori', function (Blueprint $table) { $table->id(); $table->integer('user_id')->unsigned()->unique(); $table->integer('obtained')->default(0)->unsigned(); @@ -33,6 +33,6 @@ public function up() */ public function down() { - Schema::dropIfExists('hesporis'); + Schema::dropIfExists('hespori'); } } diff --git a/database/migrations/2020_07_05_133127_create_kalphite_queens_table.php b/database/migrations/2020_08_03_230724_create_kalphite_queen_table.php similarity index 85% rename from database/migrations/2020_07_05_133127_create_kalphite_queens_table.php rename to database/migrations/2020_08_03_230724_create_kalphite_queen_table.php index 0213656b..2513b9d5 100644 --- a/database/migrations/2020_07_05_133127_create_kalphite_queens_table.php +++ b/database/migrations/2020_08_03_230724_create_kalphite_queen_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateKalphiteQueensTable extends Migration +class CreateKalphiteQueenTable extends Migration { /** * Run the migrations. @@ -13,7 +13,7 @@ class CreateKalphiteQueensTable extends Migration */ public function up() { - Schema::create('kalphite_queens', function (Blueprint $table) { + Schema::create('kalphite_queen', function (Blueprint $table) { $table->id(); $table->integer('user_id')->unsigned()->unique(); $table->integer('obtained')->default(0)->unsigned(); @@ -34,6 +34,6 @@ public function up() */ public function down() { - Schema::dropIfExists('kalphite_queens'); + Schema::dropIfExists('kalphite_queen'); } } diff --git a/database/migrations/2020_07_05_133127_create_king_black_dragons_table.php b/database/migrations/2020_08_03_230724_create_king_black_dragon_table.php similarity index 83% rename from database/migrations/2020_07_05_133127_create_king_black_dragons_table.php rename to database/migrations/2020_08_03_230724_create_king_black_dragon_table.php index e5268095..2db65b1c 100644 --- a/database/migrations/2020_07_05_133127_create_king_black_dragons_table.php +++ b/database/migrations/2020_08_03_230724_create_king_black_dragon_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateKingBlackDragonsTable extends Migration +class CreateKingBlackDragonTable extends Migration { /** * Run the migrations. @@ -13,7 +13,7 @@ class CreateKingBlackDragonsTable extends Migration */ public function up() { - Schema::create('king_black_dragons', function (Blueprint $table) { + Schema::create('king_black_dragon', function (Blueprint $table) { $table->id(); $table->integer('user_id')->unsigned()->unique(); $table->integer('obtained')->default(0)->unsigned(); @@ -33,6 +33,6 @@ public function up() */ public function down() { - Schema::dropIfExists('king_black_dragons'); + Schema::dropIfExists('king_black_dragon'); } } diff --git a/database/migrations/2020_07_05_133127_create_krakens_table.php b/database/migrations/2020_08_03_230724_create_kraken_table.php similarity index 86% rename from database/migrations/2020_07_05_133127_create_krakens_table.php rename to database/migrations/2020_08_03_230724_create_kraken_table.php index 530ff240..c2108932 100644 --- a/database/migrations/2020_07_05_133127_create_krakens_table.php +++ b/database/migrations/2020_08_03_230724_create_kraken_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateKrakensTable extends Migration +class CreateKrakenTable extends Migration { /** * Run the migrations. @@ -13,7 +13,7 @@ class CreateKrakensTable extends Migration */ public function up() { - Schema::create('krakens', function (Blueprint $table) { + Schema::create('kraken', function (Blueprint $table) { $table->id(); $table->integer('user_id')->unsigned()->unique(); $table->integer('obtained')->default(0)->unsigned(); @@ -33,6 +33,6 @@ public function up() */ public function down() { - Schema::dropIfExists('krakens'); + Schema::dropIfExists('kraken'); } } diff --git a/database/migrations/2020_07_05_133127_create_kreearras_table.php b/database/migrations/2020_08_03_230724_create_kreearra_table.php similarity index 88% rename from database/migrations/2020_07_05_133127_create_kreearras_table.php rename to database/migrations/2020_08_03_230724_create_kreearra_table.php index 7359db1d..9dc4d3f7 100644 --- a/database/migrations/2020_07_05_133127_create_kreearras_table.php +++ b/database/migrations/2020_08_03_230724_create_kreearra_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateKreearrasTable extends Migration +class CreateKreearraTable extends Migration { /** * Run the migrations. @@ -13,7 +13,7 @@ class CreateKreearrasTable extends Migration */ public function up() { - Schema::create('kreearras', function (Blueprint $table) { + Schema::create('kreearra', function (Blueprint $table) { $table->id(); $table->integer('user_id')->unsigned()->unique(); $table->integer('obtained')->default(0)->unsigned(); @@ -37,6 +37,6 @@ public function up() */ public function down() { - Schema::dropIfExists('kreearras'); + Schema::dropIfExists('kreearra'); } } diff --git a/database/migrations/2020_07_05_133128_create_kril_tsutsaroths_table.php b/database/migrations/2020_08_03_230725_create_kril_tsutsaroth_table.php similarity index 87% rename from database/migrations/2020_07_05_133128_create_kril_tsutsaroths_table.php rename to database/migrations/2020_08_03_230725_create_kril_tsutsaroth_table.php index 64dca0b5..f01bf008 100644 --- a/database/migrations/2020_07_05_133128_create_kril_tsutsaroths_table.php +++ b/database/migrations/2020_08_03_230725_create_kril_tsutsaroth_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateKrilTsutsarothsTable extends Migration +class CreateKrilTsutsarothTable extends Migration { /** * Run the migrations. @@ -13,7 +13,7 @@ class CreateKrilTsutsarothsTable extends Migration */ public function up() { - Schema::create('kril_tsutsaroths', function (Blueprint $table) { + Schema::create('kril_tsutsaroth', function (Blueprint $table) { $table->id(); $table->integer('user_id')->unsigned()->unique(); $table->integer('obtained')->default(0)->unsigned(); @@ -37,6 +37,6 @@ public function up() */ public function down() { - Schema::dropIfExists('kril_tsutsaroths'); + Schema::dropIfExists('kril_tsutsaroth'); } } diff --git a/database/migrations/2020_07_05_133128_create_obors_table.php b/database/migrations/2020_08_03_230725_create_obor_table.php similarity index 83% rename from database/migrations/2020_07_05_133128_create_obors_table.php rename to database/migrations/2020_08_03_230725_create_obor_table.php index b81bd1ad..2cda47fd 100644 --- a/database/migrations/2020_07_05_133128_create_obors_table.php +++ b/database/migrations/2020_08_03_230725_create_obor_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateOborsTable extends Migration +class CreateOborTable extends Migration { /** * Run the migrations. @@ -13,7 +13,7 @@ class CreateOborsTable extends Migration */ public function up() { - Schema::create('obors', function (Blueprint $table) { + Schema::create('obor', function (Blueprint $table) { $table->id(); $table->integer('user_id')->unsigned()->unique(); $table->integer('obtained')->default(0)->unsigned(); @@ -30,6 +30,6 @@ public function up() */ public function down() { - Schema::dropIfExists('obors'); + Schema::dropIfExists('obor'); } } diff --git a/database/migrations/2020_07_05_133128_create_sarachnis_table.php b/database/migrations/2020_08_03_230725_create_sarachnis_table.php similarity index 100% rename from database/migrations/2020_07_05_133128_create_sarachnis_table.php rename to database/migrations/2020_08_03_230725_create_sarachnis_table.php diff --git a/database/migrations/2020_07_05_133128_create_scorpias_table.php b/database/migrations/2020_08_03_230725_create_scorpia_table.php similarity index 84% rename from database/migrations/2020_07_05_133128_create_scorpias_table.php rename to database/migrations/2020_08_03_230725_create_scorpia_table.php index 2de21565..65090ba0 100644 --- a/database/migrations/2020_07_05_133128_create_scorpias_table.php +++ b/database/migrations/2020_08_03_230725_create_scorpia_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateScorpiasTable extends Migration +class CreateScorpiaTable extends Migration { /** * Run the migrations. @@ -13,7 +13,7 @@ class CreateScorpiasTable extends Migration */ public function up() { - Schema::create('scorpias', function (Blueprint $table) { + Schema::create('scorpia', function (Blueprint $table) { $table->id(); $table->integer('user_id')->unsigned()->unique(); $table->integer('obtained')->default(0)->unsigned(); @@ -32,6 +32,6 @@ public function up() */ public function down() { - Schema::dropIfExists('scorpias'); + Schema::dropIfExists('scorpia'); } } diff --git a/database/migrations/2020_07_05_133129_create_skotizos_table.php b/database/migrations/2020_08_03_230726_create_skotizo_table.php similarity index 87% rename from database/migrations/2020_07_05_133129_create_skotizos_table.php rename to database/migrations/2020_08_03_230726_create_skotizo_table.php index 87a793a4..59b4a53c 100644 --- a/database/migrations/2020_07_05_133129_create_skotizos_table.php +++ b/database/migrations/2020_08_03_230726_create_skotizo_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateSkotizosTable extends Migration +class CreateSkotizoTable extends Migration { /** * Run the migrations. @@ -13,7 +13,7 @@ class CreateSkotizosTable extends Migration */ public function up() { - Schema::create('skotizos', function (Blueprint $table) { + Schema::create('skotizo', function (Blueprint $table) { $table->id(); $table->integer('user_id')->unsigned()->unique(); $table->integer('obtained')->default(0)->unsigned(); @@ -35,6 +35,6 @@ public function up() */ public function down() { - Schema::dropIfExists('skotizos'); + Schema::dropIfExists('skotizo'); } } diff --git a/database/migrations/2020_07_05_133129_create_the_fight_caves_table.php b/database/migrations/2020_08_03_230726_create_the_fight_caves_table.php similarity index 100% rename from database/migrations/2020_07_05_133129_create_the_fight_caves_table.php rename to database/migrations/2020_08_03_230726_create_the_fight_caves_table.php diff --git a/database/migrations/2020_07_05_133129_create_the_gauntlets_table.php b/database/migrations/2020_08_03_230726_create_the_gauntlet_table.php similarity index 85% rename from database/migrations/2020_07_05_133129_create_the_gauntlets_table.php rename to database/migrations/2020_08_03_230726_create_the_gauntlet_table.php index f72d3b2a..39163bf3 100644 --- a/database/migrations/2020_07_05_133129_create_the_gauntlets_table.php +++ b/database/migrations/2020_08_03_230726_create_the_gauntlet_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateTheGauntletsTable extends Migration +class CreateTheGauntletTable extends Migration { /** * Run the migrations. @@ -13,7 +13,7 @@ class CreateTheGauntletsTable extends Migration */ public function up() { - Schema::create('the_gauntlets', function (Blueprint $table) { + Schema::create('the_gauntlet', function (Blueprint $table) { $table->id(); $table->integer('user_id')->unsigned()->unique(); $table->integer('obtained')->default(0)->unsigned(); @@ -34,6 +34,6 @@ public function up() */ public function down() { - Schema::dropIfExists('the_gauntlets'); + Schema::dropIfExists('the_gauntlet'); } } diff --git a/database/migrations/2020_07_05_133129_create_the_infernos_table.php b/database/migrations/2020_08_03_230726_create_the_inferno_table.php similarity index 82% rename from database/migrations/2020_07_05_133129_create_the_infernos_table.php rename to database/migrations/2020_08_03_230726_create_the_inferno_table.php index 332e5a75..333913ab 100644 --- a/database/migrations/2020_07_05_133129_create_the_infernos_table.php +++ b/database/migrations/2020_08_03_230726_create_the_inferno_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateTheInfernosTable extends Migration +class CreateTheInfernoTable extends Migration { /** * Run the migrations. @@ -13,7 +13,7 @@ class CreateTheInfernosTable extends Migration */ public function up() { - Schema::create('the_infernos', function (Blueprint $table) { + Schema::create('the_inferno', function (Blueprint $table) { $table->id(); $table->integer('user_id')->unsigned()->unique(); $table->integer('obtained')->default(0)->unsigned(); @@ -31,6 +31,6 @@ public function up() */ public function down() { - Schema::dropIfExists('the_infernos'); + Schema::dropIfExists('the_inferno'); } } diff --git a/database/migrations/2020_07_05_133130_create_the_nightmares_table.php b/database/migrations/2020_08_03_230726_create_the_nightmare_table.php similarity index 88% rename from database/migrations/2020_07_05_133130_create_the_nightmares_table.php rename to database/migrations/2020_08_03_230726_create_the_nightmare_table.php index 315428f3..1c7b14e9 100644 --- a/database/migrations/2020_07_05_133130_create_the_nightmares_table.php +++ b/database/migrations/2020_08_03_230726_create_the_nightmare_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateTheNightmaresTable extends Migration +class CreateTheNightmareTable extends Migration { /** * Run the migrations. @@ -13,7 +13,7 @@ class CreateTheNightmaresTable extends Migration */ public function up() { - Schema::create('the_nightmares', function (Blueprint $table) { + Schema::create('the_nightmare', function (Blueprint $table) { $table->id(); $table->integer('user_id')->unsigned()->unique(); $table->integer('obtained')->default(0)->unsigned(); @@ -39,6 +39,6 @@ public function up() */ public function down() { - Schema::dropIfExists('the_nightmares'); + Schema::dropIfExists('the_nightmare'); } } diff --git a/database/migrations/2020_07_05_133130_create_thermonuclear_smoke_devils_table.php b/database/migrations/2020_08_03_230727_create_thermonuclear_smoke_devil_table.php similarity index 81% rename from database/migrations/2020_07_05_133130_create_thermonuclear_smoke_devils_table.php rename to database/migrations/2020_08_03_230727_create_thermonuclear_smoke_devil_table.php index 71121b5d..30fda9db 100644 --- a/database/migrations/2020_07_05_133130_create_thermonuclear_smoke_devils_table.php +++ b/database/migrations/2020_08_03_230727_create_thermonuclear_smoke_devil_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateThermonuclearSmokeDevilsTable extends Migration +class CreateThermonuclearSmokeDevilTable extends Migration { /** * Run the migrations. @@ -13,7 +13,7 @@ class CreateThermonuclearSmokeDevilsTable extends Migration */ public function up() { - Schema::create('thermonuclear_smoke_devils', function (Blueprint $table) { + Schema::create('thermonuclear_smoke_devil', function (Blueprint $table) { $table->id(); $table->integer('user_id')->unsigned()->unique(); $table->integer('obtained')->default(0)->unsigned(); @@ -33,6 +33,6 @@ public function up() */ public function down() { - Schema::dropIfExists('thermonuclear_smoke_devils'); + Schema::dropIfExists('thermonuclear_smoke_devil'); } } diff --git a/database/migrations/2020_07_05_133130_create_venenatis_table.php b/database/migrations/2020_08_03_230727_create_venenatis_table.php similarity index 100% rename from database/migrations/2020_07_05_133130_create_venenatis_table.php rename to database/migrations/2020_08_03_230727_create_venenatis_table.php diff --git a/database/migrations/2020_07_05_133130_create_vetions_table.php b/database/migrations/2020_08_03_230727_create_vetion_table.php similarity index 85% rename from database/migrations/2020_07_05_133130_create_vetions_table.php rename to database/migrations/2020_08_03_230727_create_vetion_table.php index fd68a9c6..88faa81b 100644 --- a/database/migrations/2020_07_05_133130_create_vetions_table.php +++ b/database/migrations/2020_08_03_230727_create_vetion_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateVetionsTable extends Migration +class CreateVetionTable extends Migration { /** * Run the migrations. @@ -13,7 +13,7 @@ class CreateVetionsTable extends Migration */ public function up() { - Schema::create('vetions', function (Blueprint $table) { + Schema::create('vetion', function (Blueprint $table) { $table->id(); $table->integer('user_id')->unsigned()->unique(); $table->integer('obtained')->default(0)->unsigned(); @@ -33,6 +33,6 @@ public function up() */ public function down() { - Schema::dropIfExists('vetions'); + Schema::dropIfExists('vetion'); } } diff --git a/database/migrations/2020_07_05_133130_create_vorkaths_table.php b/database/migrations/2020_08_03_230727_create_vorkath_table.php similarity index 87% rename from database/migrations/2020_07_05_133130_create_vorkaths_table.php rename to database/migrations/2020_08_03_230727_create_vorkath_table.php index 12a24125..db5031de 100644 --- a/database/migrations/2020_07_05_133130_create_vorkaths_table.php +++ b/database/migrations/2020_08_03_230727_create_vorkath_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateVorkathsTable extends Migration +class CreateVorkathTable extends Migration { /** * Run the migrations. @@ -13,7 +13,7 @@ class CreateVorkathsTable extends Migration */ public function up() { - Schema::create('vorkaths', function (Blueprint $table) { + Schema::create('vorkath', function (Blueprint $table) { $table->id(); $table->integer('user_id')->unsigned()->unique(); $table->integer('obtained')->default(0)->unsigned(); @@ -35,6 +35,6 @@ public function up() */ public function down() { - Schema::dropIfExists('vorkaths'); + Schema::dropIfExists('vorkath'); } } diff --git a/database/migrations/2020_07_05_133131_create_wintertodts_table.php b/database/migrations/2020_08_03_230727_create_wintertodt_table.php similarity index 89% rename from database/migrations/2020_07_05_133131_create_wintertodts_table.php rename to database/migrations/2020_08_03_230727_create_wintertodt_table.php index 24c4c602..6ea87287 100644 --- a/database/migrations/2020_07_05_133131_create_wintertodts_table.php +++ b/database/migrations/2020_08_03_230727_create_wintertodt_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateWintertodtsTable extends Migration +class CreateWintertodtTable extends Migration { /** * Run the migrations. @@ -13,7 +13,7 @@ class CreateWintertodtsTable extends Migration */ public function up() { - Schema::create('wintertodts', function (Blueprint $table) { + Schema::create('wintertodt', function (Blueprint $table) { $table->id(); $table->integer('user_id')->unsigned()->unique(); $table->integer('obtained')->default(0)->unsigned(); @@ -39,6 +39,6 @@ public function up() */ public function down() { - Schema::dropIfExists('wintertodts'); + Schema::dropIfExists('wintertodt'); } } diff --git a/database/migrations/2020_07_05_133131_create_zalcanos_table.php b/database/migrations/2020_08_03_230728_create_zalcano_table.php similarity index 85% rename from database/migrations/2020_07_05_133131_create_zalcanos_table.php rename to database/migrations/2020_08_03_230728_create_zalcano_table.php index ee1e5479..d197a973 100644 --- a/database/migrations/2020_07_05_133131_create_zalcanos_table.php +++ b/database/migrations/2020_08_03_230728_create_zalcano_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateZalcanosTable extends Migration +class CreateZalcanoTable extends Migration { /** * Run the migrations. @@ -13,7 +13,7 @@ class CreateZalcanosTable extends Migration */ public function up() { - Schema::create('zalcanos', function (Blueprint $table) { + Schema::create('zalcano', function (Blueprint $table) { $table->id(); $table->integer('user_id')->unsigned()->unique(); $table->integer('obtained')->default(0)->unsigned(); @@ -33,6 +33,6 @@ public function up() */ public function down() { - Schema::dropIfExists('zalcanos'); + Schema::dropIfExists('zalcano'); } } diff --git a/database/migrations/2020_07_05_133131_create_zulrahs_table.php b/database/migrations/2020_08_03_230728_create_zulrah_table.php similarity index 90% rename from database/migrations/2020_07_05_133131_create_zulrahs_table.php rename to database/migrations/2020_08_03_230728_create_zulrah_table.php index df4ca596..8bba0b94 100644 --- a/database/migrations/2020_07_05_133131_create_zulrahs_table.php +++ b/database/migrations/2020_08_03_230728_create_zulrah_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateZulrahsTable extends Migration +class CreateZulrahTable extends Migration { /** * Run the migrations. @@ -13,7 +13,7 @@ class CreateZulrahsTable extends Migration */ public function up() { - Schema::create('zulrahs', function (Blueprint $table) { + Schema::create('zulrah', function (Blueprint $table) { $table->id(); $table->integer('user_id')->unsigned()->unique(); $table->integer('obtained')->default(0)->unsigned(); @@ -39,6 +39,6 @@ public function up() */ public function down() { - Schema::dropIfExists('zulrahs'); + Schema::dropIfExists('zulrah'); } } diff --git a/database/migrations/2020_08_05_225546_create_goblin_table.php b/database/migrations/2020_08_05_225546_create_goblin_table.php new file mode 100644 index 00000000..092567f2 --- /dev/null +++ b/database/migrations/2020_08_05_225546_create_goblin_table.php @@ -0,0 +1,40 @@ +id(); + $table->integer('user_id')->unsigned()->unique(); + $table->integer('obtained')->default(0)->unsigned(); + $table->integer('kill_count')->default(0)->unsigned(); + $table->integer('bones')->default(0)->unsigned(); + $table->integer('water_rune')->default(0)->unsigned(); + $table->integer('coins')->default(0)->unsigned(); + $table->integer('hammer')->default(0)->unsigned(); + $table->integer('beer')->default(0)->unsigned(); + $table->integer('goblin_mail')->default(0)->unsigned(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('goblin'); + } +} diff --git a/database/seeds/CollectionSeeder.php b/database/seeds/CollectionSeeder.php index 7253eb2a..9f1695b3 100644 --- a/database/seeds/CollectionSeeder.php +++ b/database/seeds/CollectionSeeder.php @@ -48,6 +48,7 @@ public function run() ["name" => "wintertodt", "collection_type" => "App\Boss\Wintertodt"], ["name" => "zalcano", "collection_type" => "App\Boss\Zalcano"], ["name" => "zulrah", "collection_type" => "App\Boss\Zulrah"], + ["name" => "goblin", "collection_type" => "App\Boss\Goblin"], // TODO remove later ]); } } diff --git a/package-lock.json b/package-lock.json index 2784462c..cb1216f7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5285,9 +5285,9 @@ } }, "lodash": { - "version": "4.17.15", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", - "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", + "version": "4.17.19", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.19.tgz", + "integrity": "sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==", "dev": true }, "lodash._baseassign": { diff --git a/package.json b/package.json index 8ed93d1d..3f41e26e 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "cross-env": "^7.0", "jquery": "^3.2", "laravel-mix": "^5.0.1", - "lodash": "^4.17.13", + "lodash": "^4.17.19", "popper.js": "^1.12", "resolve-url-loader": "^2.3.1", "sass": "^1.20.1", diff --git a/routes/api.php b/routes/api.php index 850a1ead..73d0f116 100644 --- a/routes/api.php +++ b/routes/api.php @@ -22,6 +22,12 @@ // Route::middleware('auth:api')->group(function () { Route::get('/', 'CollectionController@index'); Route::get('/{boss}', 'CollectionController@show'); - Route::put('/{boss}', 'CollectionController@update'); + Route::put('/{boss}', 'BossController@update'); // }); }); + +Route::prefix('/collection')->group(function () { + // Route::middleware('auth:api')->group(function () { + Route::get('/', 'CollectionController@bossList'); + // }); +}); \ No newline at end of file