diff options
Diffstat (limited to 'src/config/auth.php')
-rw-r--r-- | src/config/auth.php | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/config/auth.php b/src/config/auth.php new file mode 100644 index 0000000..ee836e2 --- /dev/null +++ b/src/config/auth.php @@ -0,0 +1,34 @@ +<?php + +return [ + + /* + |-------------------------------------------------------------------------- + | Debug Mode + |-------------------------------------------------------------------------- + | + | Enabling debug mode will result in error responses caused by thrown + | exceptions to have a "debug" key that will be populated with + | more detailed information on the exception. + | + */ + + 'debug' => true, + + /* + |-------------------------------------------------------------------------- + | Authentication Providers + |-------------------------------------------------------------------------- + | + | The authentication providers that should be used when attempting to + | authenticate an incoming API request. + | + */ + + 'auth' => [ + 'custom' => function ($app) { + return new AuthProvider; + }, + ] + +]; |