-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #186 from pacoorozco/issue-183
Upgrade gamify-laravel to Laravel 8.x
- Loading branch information
Showing
344 changed files
with
13,625 additions
and
5,442 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,77 @@ | ||
# .env.travis | ||
|
||
APP_NAME=GAMIFY | ||
# Configuration for Travis jobs | ||
APP_NAME=Gamify | ||
APP_ENV=testing | ||
APP_KEY=base64:KYGGyNe20C0PeTfNQk7foGJz7vor/iXFXRkAOPgeYAM= | ||
APP_KEY= | ||
APP_DEBUG=true | ||
APP_URL=http://localhost | ||
|
||
# Database configuration. | ||
DB_CONNECTION=mysql | ||
DB_HOST=localhost | ||
DB_HOST=127.0.0.1 | ||
DB_PORT=3306 | ||
DB_DATABASE=testing | ||
DB_USERNAME=travis | ||
DB_PASSWORD= | ||
|
||
BCRYPT_ROUNDS=4 | ||
# Cache configuration. | ||
# | ||
# For Redis, use 'CACHE_DRIVER=redis' and set 'REDIS_*' variables below. | ||
CACHE_DRIVER=array | ||
QUEUE_CONNECTION=sync | ||
|
||
# Session manager configuration. | ||
# | ||
# For Redis, use 'SESSION_DRIVER=redis' and set 'REDIS_*' variables below. | ||
SESSION_DRIVER=array | ||
MAIL_DRIVER=array | ||
|
||
# Redis configuration. | ||
REDIS_HOST=127.0.0.1 | ||
REDIS_PASSWORD=null | ||
REDIS_PORT=6379 | ||
|
||
# Multi-auth configuration. | ||
# See 'config/services.php' to know how to enable OAuth providers. | ||
# | ||
# For okta OAuth, set these variables. | ||
OKTA_KEY= | ||
OKTA_SECRET= | ||
OKTA_REDIRECT_URI= | ||
OKTA_BASE_URL= | ||
|
||
# External storage service configuration. | ||
# Define which disk will be used for uploads (user, badge and level's images). | ||
# | ||
# Default value (commented) is 'public' disk (see 'config/filesystems.php'). | ||
# | ||
# You can use any available disk at 'disks' (see 'config/filesystems.php'). | ||
# | ||
# For AWS S3, uncomment it, set 'UPLOAD_DISK=s3' and set 'AWS_*' variables below. | ||
# UPLOAD_DISK=public | ||
|
||
# AWS S3 configuration. | ||
# Set 'UPLOAD_DISK=s3' to upload images to AWS. | ||
AWS_ACCESS_KEY_ID= | ||
AWS_SECRET_ACCESS_KEY= | ||
AWS_DEFAULT_REGION= | ||
AWS_BUCKET= | ||
|
||
# Trusted proxies configuration | ||
# @see 'config/trustedproxy.php' to know how to configure these trusted proxies. | ||
TRUSTED_PROXIES= | ||
TRUSTED_HEADERS= | ||
|
||
# -----[ DO NOT TOUCH BELOW THIS POINT ]----- | ||
# | ||
BROADCAST_DRIVER=log | ||
QUEUE_CONNECTION=sync | ||
|
||
LOG_CHANNEL=stack | ||
LOG_LEVEL=debug | ||
|
||
MAIL_MAILER=array | ||
MAIL_HOST=mailhog | ||
MAIL_PORT=1025 | ||
MAIL_USERNAME=null | ||
MAIL_PASSWORD=null | ||
MAIL_ENCRYPTION=null | ||
MAIL_FROM_ADDRESS=null | ||
MAIL_FROM_NAME="${APP_NAME}" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,27 @@ | ||
<?php | ||
/** | ||
* Gamify - Gamification platform to implement any serious game mechanic. | ||
* | ||
* Copyright (c) 2018 by Paco Orozco <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* Some rights reserved. See LICENSE and AUTHORS files. | ||
* | ||
* @author Paco Orozco <[email protected]> | ||
* @copyright 2018 Paco Orozco | ||
* @license GPL-3.0 <http://spdx.org/licenses/GPL-3.0> | ||
* | ||
* @link https://github.com/pacoorozco/gamify-laravel | ||
*/ | ||
|
||
namespace Gamify\Enums; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,27 @@ | ||
<?php | ||
/** | ||
* Gamify - Gamification platform to implement any serious game mechanic. | ||
* | ||
* Copyright (c) 2018 by Paco Orozco <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* Some rights reserved. See LICENSE and AUTHORS files. | ||
* | ||
* @author Paco Orozco <[email protected]> | ||
* @copyright 2018 Paco Orozco | ||
* @license GPL-3.0 <http://spdx.org/licenses/GPL-3.0> | ||
* | ||
* @link https://github.com/pacoorozco/gamify-laravel | ||
*/ | ||
|
||
namespace Gamify\Enums; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,39 @@ | ||
<?php | ||
/** | ||
* Gamify - Gamification platform to implement any serious game mechanic. | ||
* | ||
* Copyright (c) 2018 by Paco Orozco <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* Some rights reserved. See LICENSE and AUTHORS files. | ||
* | ||
* @author Paco Orozco <[email protected]> | ||
* @copyright 2018 Paco Orozco | ||
* @license GPL-3.0 <http://spdx.org/licenses/GPL-3.0> | ||
* | ||
* @link https://github.com/pacoorozco/gamify-laravel | ||
*/ | ||
|
||
namespace Gamify\Events; | ||
|
||
use Gamify\Point; | ||
use Gamify\Models\Point; | ||
use Illuminate\Foundation\Events\Dispatchable; | ||
use Illuminate\Queue\SerializesModels; | ||
|
||
class PointCreated | ||
{ | ||
use Dispatchable, SerializesModels; | ||
|
||
/** @var \Gamify\User */ | ||
/** @var \Gamify\Models\User */ | ||
public $user; | ||
|
||
/** @var int */ | ||
|
@@ -19,7 +42,7 @@ class PointCreated | |
/** | ||
* Create a new event instance. | ||
* | ||
* @param \Gamify\Point $point | ||
* @param \Gamify\Models\Point $point | ||
* | ||
* @return void | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,43 @@ | ||
<?php | ||
/** | ||
* Gamify - Gamification platform to implement any serious game mechanic. | ||
* | ||
* Copyright (c) 2018 by Paco Orozco <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* Some rights reserved. See LICENSE and AUTHORS files. | ||
* | ||
* @author Paco Orozco <[email protected]> | ||
* @copyright 2018 Paco Orozco | ||
* @license GPL-3.0 <http://spdx.org/licenses/GPL-3.0> | ||
* | ||
* @link https://github.com/pacoorozco/gamify-laravel | ||
*/ | ||
|
||
namespace Gamify\Events; | ||
|
||
use Gamify\Question; | ||
use Gamify\User; | ||
use Gamify\Models\Question; | ||
use Gamify\Models\User; | ||
use Illuminate\Foundation\Events\Dispatchable; | ||
use Illuminate\Queue\SerializesModels; | ||
|
||
class QuestionAnswered | ||
{ | ||
use Dispatchable, SerializesModels; | ||
|
||
/** @var \Gamify\User */ | ||
/** @var \Gamify\Models\User */ | ||
public User $user; | ||
|
||
/** @var \Gamify\Question */ | ||
/** @var \Gamify\Models\Question */ | ||
public Question $question; | ||
|
||
/** @var int */ | ||
|
@@ -26,8 +49,8 @@ class QuestionAnswered | |
/** | ||
* Create a new event instance. | ||
* | ||
* @param \Gamify\User $user | ||
* @param \Gamify\Question $question | ||
* @param \Gamify\Models\User $user | ||
* @param \Gamify\Models\Question $question | ||
* @param int $points | ||
* @param bool $correctness | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,27 @@ | ||
<?php | ||
/** | ||
* Gamify - Gamification platform to implement any serious game mechanic. | ||
* | ||
* Copyright (c) 2018 by Paco Orozco <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* Some rights reserved. See LICENSE and AUTHORS files. | ||
* | ||
* @author Paco Orozco <[email protected]> | ||
* @copyright 2018 Paco Orozco | ||
* @license GPL-3.0 <http://spdx.org/licenses/GPL-3.0> | ||
* | ||
* @link https://github.com/pacoorozco/gamify-laravel | ||
*/ | ||
|
||
namespace Gamify\Events; | ||
|
||
|
Oops, something went wrong.