diff --git a/app/Http/Controllers/ApplicationController.php b/app/Http/Controllers/ApplicationController.php index cf38a33..7b74341 100755 --- a/app/Http/Controllers/ApplicationController.php +++ b/app/Http/Controllers/ApplicationController.php @@ -35,7 +35,7 @@ use Illuminate\Support\Facades\Log; class ApplicationController extends Controller { - private function canVote($votes) + private function canVote($votes): bool { $allvotes = collect([]); diff --git a/database/migrations/2020_10_04_124115_vacancy_nullable_team_id.php b/database/migrations/2020_10_04_124115_vacancy_nullable_team_id.php deleted file mode 100755 index 6fff503..0000000 --- a/database/migrations/2020_10_04_124115_vacancy_nullable_team_id.php +++ /dev/null @@ -1,53 +0,0 @@ -. - */ - -use Illuminate\Database\Migrations\Migration; -use Illuminate\Database\Schema\Blueprint; -use Illuminate\Support\Facades\Schema; - -class VacancyNullableTeamId extends Migration -{ - /** - * Run the migrations. - * - * @return void - */ - public function up() - { - Schema::table('vacancies', function (Blueprint $table) { - $table->dropForeign('vacancies_ownerteamid_foreign'); - $table->dropColumn('ownerTeamID'); - $table->bigInteger('team_id')->nullable()->unsigned(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('vacancies', function (Blueprint $table) { - $table->dropColumn('team_id'); - }); - } -} diff --git a/database/seeders/DatabaseSeeder.php b/database/seeders/DatabaseSeeder.php index 51ae93b..7aa686b 100755 --- a/database/seeders/DatabaseSeeder.php +++ b/database/seeders/DatabaseSeeder.php @@ -37,6 +37,5 @@ class DatabaseSeeder extends Seeder $this->call(DefaultOptionsSeeder::class); $this->call(NewPermissions::class); $this->call(TeamSeeder::class); - $this->call(TeamFileSeeder::class); } } diff --git a/database/seeders/TeamFileSeeder.php b/database/seeders/TeamFileSeeder.php deleted file mode 100755 index 4e44a98..0000000 --- a/database/seeders/TeamFileSeeder.php +++ /dev/null @@ -1,38 +0,0 @@ -. - */ - -namespace Database\Seeders; - -use App\TeamFile; -use Illuminate\Database\Seeder; - -class TeamFileSeeder extends Seeder -{ - /** - * Run the database seeds. - * - * @return void - */ - public function run() - { - TeamFile::factory()->count(50)->create(); - } -} diff --git a/resources/views/dashboard/dashboard.blade.php b/resources/views/dashboard/dashboard.blade.php index 81ee4d5..f6b516e 100755 --- a/resources/views/dashboard/dashboard.blade.php +++ b/resources/views/dashboard/dashboard.blade.php @@ -154,7 +154,6 @@