add helpers in composer
This commit is contained in:
@@ -17,6 +17,9 @@
|
|||||||
"phpunit/phpunit": "^8.5"
|
"phpunit/phpunit": "^8.5"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
|
"files":[
|
||||||
|
"app/helpers.php"
|
||||||
|
],
|
||||||
"classmap": [
|
"classmap": [
|
||||||
"database/seeds",
|
"database/seeds",
|
||||||
"database/factories"
|
"database/factories"
|
||||||
|
|||||||
@@ -0,0 +1,44 @@
|
|||||||
|
{
|
||||||
|
"name": "laravel/lumen",
|
||||||
|
"description": "The Laravel Lumen Framework.",
|
||||||
|
"keywords": ["framework", "laravel", "lumen"],
|
||||||
|
"license": "MIT",
|
||||||
|
"type": "project",
|
||||||
|
"require": {
|
||||||
|
"php": "^7.2.5",
|
||||||
|
"auth0/auth0-php": "^7.4",
|
||||||
|
"laravel/lumen-framework": "^7.0",
|
||||||
|
"rap2hpoutre/laravel-log-viewer": "^1.7"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"fzaninotto/faker": "^1.9.1",
|
||||||
|
"mockery/mockery": "^1.3.1",
|
||||||
|
"phpunit/phpunit": "^8.5"
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"classmap": [
|
||||||
|
"database/seeds",
|
||||||
|
"database/factories"
|
||||||
|
],
|
||||||
|
"psr-4": {
|
||||||
|
"App\\": "app/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"autoload-dev": {
|
||||||
|
"classmap": [
|
||||||
|
"tests/"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"config": {
|
||||||
|
"preferred-install": "dist",
|
||||||
|
"sort-packages": true,
|
||||||
|
"optimize-autoloader": true
|
||||||
|
},
|
||||||
|
"minimum-stability": "dev",
|
||||||
|
"prefer-stable": true,
|
||||||
|
"scripts": {
|
||||||
|
"post-root-package-install": [
|
||||||
|
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,60 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
return [
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Laravel CORS Options
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| The allowed_methods and allowed_headers options are case-insensitive.
|
||||||
|
|
|
||||||
|
| You don't need to provide both allowed_origins and allowed_origins_patterns.
|
||||||
|
| If one of the strings passed matches, it is considered a valid origin.
|
||||||
|
|
|
||||||
|
| If ['*'] is provided to allowed_methods, allowed_origins or allowed_headers
|
||||||
|
| all methods / origins / headers are allowed.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* You can enable CORS for 1 or multiple paths.
|
||||||
|
* Example: ['api/*']
|
||||||
|
*/
|
||||||
|
'paths' => ['api/*'],
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Matches the request method. `['*']` allows all methods.
|
||||||
|
*/
|
||||||
|
'allowed_methods' => ['*'],
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Matches the request origin. `['*']` allows all origins. Wildcards can be used, eg `*.mydomain.com`
|
||||||
|
*/
|
||||||
|
'allowed_origins' => ['*'],
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Patterns that can be used with `preg_match` to match the origin.
|
||||||
|
*/
|
||||||
|
'allowed_origins_patterns' => [],
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Sets the Access-Control-Allow-Headers response header. `['*']` allows all headers.
|
||||||
|
*/
|
||||||
|
'allowed_headers' => ['*'],
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Sets the Access-Control-Expose-Headers response header with these headers.
|
||||||
|
*/
|
||||||
|
'exposed_headers' => [],
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Sets the Access-Control-Max-Age response header when > 0.
|
||||||
|
*/
|
||||||
|
'max_age' => 86400,
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Sets the Access-Control-Allow-Credentials header.
|
||||||
|
*/
|
||||||
|
'supports_credentials' => true,
|
||||||
|
];
|
||||||
Reference in New Issue
Block a user