Upgrade to Laravel 11

This commit is contained in:
armiejean 2025-04-04 17:45:36 +08:00
parent db4403eda9
commit 5bc891763a
443 changed files with 5359 additions and 3121 deletions

0
.DS_Store vendored Normal file → Executable file
View File

0
.dockerignore Normal file → Executable file
View File

0
.editorconfig Normal file → Executable file
View File

7
.env Normal file → Executable file
View File

@ -1,7 +1,8 @@
\APP_NAME=Unioil APP_NAME=Laravel
APP_ENV=local APP_ENV=local
APP_KEY=base64:0gU9IIArwNb9IW4nkiuN72zGhw0YrtIVZnM7WJxxD88= APP_KEY=base64:0gU9IIArwNb9IW4nkiuN72zGhw0YrtIVZnM7WJxxD88=
APP_DEBUG=true APP_DEBUG=true
APP_URL=http://localhost APP_URL=http://localhost
LOG_CHANNEL=stack LOG_CHANNEL=stack
@ -10,8 +11,8 @@ DB_CONNECTION=mysql
DB_HOST=db_mysql DB_HOST=db_mysql
DB_PORT=3306 DB_PORT=3306
DB_DATABASE=unioil-app DB_DATABASE=unioil-app
DB_USERNAME=armiejean DB_USERNAME=rootuser
DB_PASSWORD=yourpassword DB_PASSWORD=password
BROADCAST_DRIVER=log BROADCAST_DRIVER=log
CACHE_DRIVER=file CACHE_DRIVER=file

0
.env.example Normal file → Executable file
View File

0
.gitattributes vendored Normal file → Executable file
View File

0
.gitignore vendored Normal file → Executable file
View File

0
README.md Normal file → Executable file
View File

0
app/.DS_Store vendored Normal file → Executable file
View File

0
app/Abstracts/CustomFormRequest.php Normal file → Executable file
View File

0
app/Admin.php Normal file → Executable file
View File

0
app/AdminActionLogs.php Normal file → Executable file
View File

0
app/CodeCardType.php Normal file → Executable file
View File

0
app/CodeCity.php Normal file → Executable file
View File

0
app/CodeCivilStatus.php Normal file → Executable file
View File

0
app/CodeFuelType.php Normal file → Executable file
View File

0
app/CodeGender.php Normal file → Executable file
View File

0
app/CodeProvince.php Normal file → Executable file
View File

0
app/CodeVehicleOwn.php Normal file → Executable file
View File

0
app/Console/Commands/InactiveLoyaltyCard.php Normal file → Executable file
View File

0
app/Console/Kernel.php Normal file → Executable file
View File

0
app/Contracts/AdminActionLogsInterface.php Normal file → Executable file
View File

0
app/Contracts/AdminResourceInterface.php Normal file → Executable file
View File

0
app/Contracts/CardTypeResourceInterface.php Normal file → Executable file
View File

0
app/Contracts/CityAndProvinceResourceInterface.php Normal file → Executable file
View File

0
app/Contracts/CodeCivilStatusResourceInterface.php Normal file → Executable file
View File

0
app/Contracts/CodeFuelTypeResourceInterface.php Normal file → Executable file
View File

0
app/Contracts/CodeGenderResourceInterface.php Normal file → Executable file
View File

0
app/Contracts/CodeVehicleOwnResourceInterface.php Normal file → Executable file
View File

0
app/Contracts/FuelTrackerResourceInterface.php Normal file → Executable file
View File

0
app/Contracts/HttpStatusCodeInterface.php Normal file → Executable file
View File

0
app/Contracts/IDNumberTypeInterface.php Normal file → Executable file
View File

0
app/Contracts/LcardActionLogsInterface.php Normal file → Executable file
View File

0
app/Contracts/LoyaltyCardResourceInterface.php Normal file → Executable file
View File

0
app/Contracts/LoyaltyCardSignUpInterface.php Normal file → Executable file
View File

0
app/Contracts/MobileAnalyticsResourceInterface.php Normal file → Executable file
View File

0
app/Contracts/MpinCodesResourceInterface.php Normal file → Executable file
View File

0
app/Contracts/OtpAttemptsResourceInterface.php Normal file → Executable file
View File

0
app/Contracts/OtpLogResourceInterface.php Normal file → Executable file
View File

0
app/Contracts/PasswordLogsResourceInterface.php Normal file → Executable file
View File

0
app/Contracts/PaymentResourceInterface.php Normal file → Executable file
View File

0
app/Contracts/PersonalDetailsResourceInterface.php Normal file → Executable file
View File

0
app/Contracts/PhotoSliderResourceInterface.php Normal file → Executable file
View File

0
app/Contracts/ProductDetailsResourceInterface.php Normal file → Executable file
View File

0
app/Contracts/PromotionResourceInterface.php Normal file → Executable file
View File

0
app/Contracts/PromotionStationsInterface.php Normal file → Executable file
View File

0
app/Contracts/RatingsResourceInterface.php Normal file → Executable file
View File

0
app/Contracts/RegistrationResourceInterface.php Normal file → Executable file
View File

0
app/Contracts/SignUpAPICallsInterface.php Normal file → Executable file
View File

0
app/Contracts/StationFavoriteResourceInterface.php Normal file → Executable file
View File

0
app/Contracts/StationFuelPricesInterface.php Normal file → Executable file
View File

0
app/Contracts/StationResourceInterface.php Normal file → Executable file
View File

0
app/Contracts/SystemPreferenceResourceInterface.php Normal file → Executable file
View File

0
app/Contracts/TermsAndPrivacyResourceInterface.php Normal file → Executable file
View File

0
app/Contracts/TopUpResourceInterface.php Normal file → Executable file
View File

0
app/Contracts/UserResourceInterface.php Normal file → Executable file
View File

12
app/Exceptions/Handler.php Normal file → Executable file
View File

@ -2,7 +2,7 @@
namespace App\Exceptions; namespace App\Exceptions;
use Exception; use Throwable;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
class Handler extends ExceptionHandler class Handler extends ExceptionHandler
@ -29,22 +29,22 @@ class Handler extends ExceptionHandler
/** /**
* Report or log an exception. * Report or log an exception.
* *
* @param \Exception $exception * @param \Throwable $e
* @return void * @return void
*/ */
public function report(Exception $exception) public function report(Throwable $e)
{ {
parent::report($exception); parent::report($e);
} }
/** /**
* Render an exception into an HTTP response. * Render an exception into an HTTP response.
* *
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
* @param \Exception $exception * @param \Throwable $exception
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function render($request, Exception $exception) public function render($request, Throwable $exception)
{ {
return parent::render($request, $exception); return parent::render($request, $exception);
} }

0
app/Exports/ReportMobileUsageExport.php Normal file → Executable file
View File

0
app/Exports/ReportRegistrationExport.php Normal file → Executable file
View File

0
app/Exports/ReportStationRatingsExport.php Normal file → Executable file
View File

0
app/Exports/ReportTopUpExport.php Normal file → Executable file
View File

0
app/FuelTracker.php Normal file → Executable file
View File

0
app/Helpers/CurrentUserHelper.php Normal file → Executable file
View File

0
app/Helpers/HttpStatusCode.php Normal file → Executable file
View File

0
app/Helpers/StringHelper.php Normal file → Executable file
View File

0
app/Http/.DS_Store vendored Normal file → Executable file
View File

0
app/Http/Controllers/API/AdminController.php Normal file → Executable file
View File

0
app/Http/Controllers/API/CardTypeController.php Normal file → Executable file
View File

0
app/Http/Controllers/API/CityAndProvinceController.php Normal file → Executable file
View File

0
app/Http/Controllers/API/CodeCivilStatusController.php Normal file → Executable file
View File

0
app/Http/Controllers/API/CodeFuelTypeController.php Normal file → Executable file
View File

0
app/Http/Controllers/API/CodeGenderController.php Normal file → Executable file
View File

0
app/Http/Controllers/API/CodeVehicleOwnController.php Normal file → Executable file
View File

0
app/Http/Controllers/API/FuelTrackerController.php Normal file → Executable file
View File

0
app/Http/Controllers/API/IDNumberTypeController.php Normal file → Executable file
View File

View File

0
app/Http/Controllers/API/LoyaltyCardController.php Normal file → Executable file
View File

0
app/Http/Controllers/API/MemberController.php Normal file → Executable file
View File

0
app/Http/Controllers/API/PaymayaTokensController.php Normal file → Executable file
View File

0
app/Http/Controllers/API/PaymentController.php Normal file → Executable file
View File

0
app/Http/Controllers/API/PhotoSliderController.php Normal file → Executable file
View File

0
app/Http/Controllers/API/ProductDetailsController.php Normal file → Executable file
View File

0
app/Http/Controllers/API/PromotionController.php Normal file → Executable file
View File

0
app/Http/Controllers/API/ReportsController.php Normal file → Executable file
View File

0
app/Http/Controllers/API/SharedTreatsController.php Normal file → Executable file
View File

0
app/Http/Controllers/API/SignUpController.php Normal file → Executable file
View File

0
app/Http/Controllers/API/StationController.php Normal file → Executable file
View File

View File

0
app/Http/Controllers/API/TermsAndPrivacyController.php Normal file → Executable file
View File

0
app/Http/Controllers/API/TopUpController.php Normal file → Executable file
View File

0
app/Http/Controllers/API/UserController.php Normal file → Executable file
View File

0
app/Http/Controllers/API/UserController.php.save Normal file → Executable file
View File

0
app/Http/Controllers/Auth/ForgotPasswordController.php Normal file → Executable file
View File

0
app/Http/Controllers/Auth/LoginController.php Normal file → Executable file
View File

0
app/Http/Controllers/Auth/RegisterController.php Normal file → Executable file
View File

0
app/Http/Controllers/Auth/ResetPasswordController.php Normal file → Executable file
View File

0
app/Http/Controllers/Auth/VerificationController.php Normal file → Executable file
View File

0
app/Http/Controllers/Controller.php Normal file → Executable file
View File

0
app/Http/Controllers/HomeController.php Normal file → Executable file
View File

9
app/Http/Kernel.php Normal file → Executable file
View File

@ -18,8 +18,10 @@ class Kernel extends HttpKernel
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class, \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
\App\Http\Middleware\TrimStrings::class, \App\Http\Middleware\TrimStrings::class,
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class, \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
\App\Http\Middleware\TrustProxies::class,
\Barryvdh\Cors\HandleCors::class,
]; ];
/** /**
@ -43,6 +45,9 @@ class Kernel extends HttpKernel
'bindings', 'bindings',
\Barryvdh\Cors\HandleCors::class, \Barryvdh\Cors\HandleCors::class,
\App\Http\Middleware\BeforeMiddleware::class, \App\Http\Middleware\BeforeMiddleware::class,
'throttle:api',
\Illuminate\Routing\Middleware\SubstituteBindings::class,
CreateFreshApiToken::class, // Add this middleware
], ],
]; ];

Some files were not shown because too many files have changed in this diff Show More