diff --git a/app/Http/Controllers/UpdateController.php b/app/Http/Controllers/UpdateController.php index c3fa5766..73eb5ef2 100644 --- a/app/Http/Controllers/UpdateController.php +++ b/app/Http/Controllers/UpdateController.php @@ -12,7 +12,7 @@ use Illuminate\Support\Facades\Http; class UpdateController extends Controller { - const SPEC = 2; + public const SPEC = 2; public function showUpdatePage() { diff --git a/app/Models/User.php b/app/Models/User.php index 3cd94b8d..3f3c4809 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -35,10 +35,10 @@ class User extends Authenticatable use HasApiTokens; use SearchString; - const BANNED = -1; - const NORMAL = 0; - const ADMIN = 1; - const SUPER_ADMIN = 2; + public const BANNED = -1; + public const NORMAL = 0; + public const ADMIN = 1; + public const SUPER_ADMIN = 2; protected $primaryKey = 'uid'; public $timestamps = false; diff --git a/app/Services/OptionForm.php b/app/Services/OptionForm.php index dc32f08a..76dac5b0 100644 --- a/app/Services/OptionForm.php +++ b/app/Services/OptionForm.php @@ -21,7 +21,7 @@ class OptionForm * Pass this value to tell generator to * load text from language files automatically. */ - const AUTO_DETECT = 0x97ab1; + public const AUTO_DETECT = 0x97ab1; protected $id; protected $title; diff --git a/app/Services/Plugin.php b/app/Services/Plugin.php index 36390003..70f1c900 100644 --- a/app/Services/Plugin.php +++ b/app/Services/Plugin.php @@ -9,7 +9,7 @@ use Illuminate\Support\Str; class Plugin { - const README_FILES = [ + public const README_FILES = [ 'README.md', 'readme.md', 'README.MD',