芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/www/vendor/laravel/jetstream/src/Http/Middleware/ShareInertiaData.php
function () use ($request) { return [ 'canCreateTeams' => $request->user() && Jetstream::hasTeamFeatures() && Gate::forUser($request->user())->check('create', Jetstream::newTeamModel()), 'canManageTwoFactorAuthentication' => Features::canManageTwoFactorAuthentication(), 'canUpdatePassword' => Features::enabled(Features::updatePasswords()), 'canUpdateProfileInformation' => Features::canUpdateProfileInformation(), 'flash' => $request->session()->get('flash', []), 'hasAccountDeletionFeatures' => Jetstream::hasAccountDeletionFeatures(), 'hasApiFeatures' => Jetstream::hasApiFeatures(), 'hasTeamFeatures' => Jetstream::hasTeamFeatures(), 'hasTermsAndPrivacyPolicyFeature' => Jetstream::hasTermsAndPrivacyPolicyFeature(), 'managesProfilePhotos' => Jetstream::managesProfilePhotos(), ]; }, 'user' => function () use ($request) { if (! $request->user()) { return; } if (Jetstream::hasTeamFeatures() && $request->user()) { $request->user()->currentTeam; } return array_merge($request->user()->toArray(), array_filter([ 'all_teams' => Jetstream::hasTeamFeatures() ? $request->user()->allTeams() : null, ]), [ 'two_factor_enabled' => ! is_null($request->user()->two_factor_secret), ]); }, 'errorBags' => function () { return collect(optional(Session::get('errors'))->getBags() ?: [])->mapWithKeys(function ($bag, $key) { return [$key => $bag->messages()]; })->all(); }, ])); return $next($request); } }