initial commit

This commit is contained in:
edmondlang
2022-09-30 19:33:47 +08:00
parent 4a59afbf10
commit fe4c0c1e6f
3 changed files with 20 additions and 13 deletions
Executable → Regular
View File
+9 -8
View File
@@ -1,9 +1,10 @@
<?php
require_once __DIR__.'/../vendor/autoload.php';
require_once __DIR__ . '/../vendor/autoload.php';
try {
(new Dotenv\Dotenv(dirname(__DIR__)))->load();
$dotenv = Dotenv\Dotenv::create(__DIR__ . '/..');
$dotenv->load();
} catch (Dotenv\Exception\InvalidPathException $e) {
//
}
@@ -23,9 +24,9 @@ $app = new Laravel\Lumen\Application(
dirname(__DIR__)
);
$app->withFacades();
$app->withFacades();
$app->withEloquent();
$app->withEloquent();
/*
|--------------------------------------------------------------------------
@@ -59,9 +60,9 @@ $app->singleton(
|
*/
$app->middleware([
App\Http\Middleware\AuthenticateAccess::class
]);
$app->middleware([
App\Http\Middleware\AuthenticateAccess::class
]);
// $app->routeMiddleware([
// 'auth' => App\Http\Middleware\Authenticate::class,
@@ -96,7 +97,7 @@ $app->singleton(
$app->router->group([
'namespace' => 'App\Http\Controllers',
], function ($router) {
require __DIR__.'/../routes/web.php';
require __DIR__ . '/../routes/web.php';
});
return $app;
+11 -5
View File
@@ -6,13 +6,16 @@
"type": "project",
"require": {
"php": ">=7.1.3",
"laravel/lumen-framework": "5.7.*",
"vlucas/phpdotenv": "~2.2"
"dusterio/lumen-passport": "^0.2.15",
"guzzlehttp/guzzle": "^6.5",
"laravel/lumen-framework": "5.8.*",
"lcobucci/jwt": "3.3.3",
"vlucas/phpdotenv": "^3.3"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"phpunit/phpunit": "~7.0",
"mockery/mockery": "~1.0"
"mockery/mockery": "~1.0",
"phpunit/phpunit": "~7.0"
},
"autoload": {
"classmap": [
@@ -36,7 +39,10 @@
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true
"optimize-autoloader": true,
"allow-plugins": {
"kylekatarnls/update-helper": true
}
},
"minimum-stability": "dev",
"prefer-stable": true