mirror of
https://gh.wpcy.net/https://github.com/aspirepress/AspireCloud.git
synced 2026-05-31 00:04:27 +08:00
* feat: Changes required on existing files to setup Jetstream * feat: add the Inertia Home and Dashboard * feat: Add all required files and migrations to setup Jetstream * feat: Add the Sanctum middleware to the API endpoints - Added Sanctum to the API endpoints to requiere an API Key - Added a setting to control if the app should use authenticated API or not (see .env.example) - Fix redirection on API routes to the login page when a request was unauthenticated * feat: Users Management and Authication API Keys - Refactor existing tests to make authenticated request is enable - Hide the permissions setting on the UI, for now we only have a read-only API - Add tests to test authenticated and unauthenticated calls
79 lines
2.6 KiB
PHP
79 lines
2.6 KiB
PHP
<?php
|
|
|
|
use Laravel\Jetstream\Features;
|
|
use Laravel\Jetstream\Http\Middleware\AuthenticateSession;
|
|
|
|
return [
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Jetstream Stack
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This configuration value informs Jetstream which "stack" you will be
|
|
| using for your application. In general, this value is set for you
|
|
| during installation and will not need to be changed after that.
|
|
|
|
|
*/
|
|
|
|
'stack' => 'inertia',
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Jetstream Route Middleware
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here you may specify which middleware Jetstream will assign to the routes
|
|
| that it registers with the application. When necessary, you may modify
|
|
| these middleware; however, this default value is usually sufficient.
|
|
|
|
|
*/
|
|
|
|
'middleware' => ['web'],
|
|
|
|
'auth_session' => AuthenticateSession::class,
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Jetstream Guard
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here you may specify the authentication guard Jetstream will use while
|
|
| authenticating users. This value should correspond with one of your
|
|
| guards that is already present in your "auth" configuration file.
|
|
|
|
|
*/
|
|
|
|
'guard' => 'sanctum',
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Features
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Some of Jetstream's features are optional. You may disable the features
|
|
| by removing them from this array. You're free to only remove some of
|
|
| these features or you can even remove all of these if you need to.
|
|
|
|
|
*/
|
|
|
|
'features' => [
|
|
// Features::termsAndPrivacyPolicy(),
|
|
// Features::profilePhotos(),
|
|
Features::api(),
|
|
// Features::teams(['invitations' => true]),
|
|
Features::accountDeletion(),
|
|
],
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Profile Photo Disk
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This configuration value determines the default disk that will be used
|
|
| when storing profile photos for your application's users. Typically
|
|
| this will be the "public" disk but you may adjust this if needed.
|
|
|
|
|
*/
|
|
|
|
'profile_photo_disk' => 'public',
|
|
];
|