File manager - Edit - /var/www/payraty/helpdesk/common/Workspaces/UserWorkspacesController.php
Back
<?php namespace Common\Workspaces; use Auth; use Common\Core\BaseController; class UserWorkspacesController extends BaseController { public function __construct() { $this->middleware('auth'); } public function index() { $workspaces = Workspace::forUser(Auth::id()) ->with(['members']) ->withCount(['members']) ->limit(20) ->get() ->map(function (Workspace $workspace) { $workspace->setCurrentUserAndOwner(); return $workspace; }); return $this->success([ 'workspaces' => $workspaces, ]); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings