Changeset View
Changeset View
Standalone View
Standalone View
src/app/Http/Controllers/API/V4/GroupsController.php
<?php | <?php | ||||
namespace App\Http\Controllers\API\V4; | namespace App\Http\Controllers\API\V4; | ||||
use App\Http\Controllers\Controller; | use App\Http\Controllers\Controller; | ||||
use App\Domain; | use App\Domain; | ||||
use App\Group; | use App\Group; | ||||
use App\Rules\GroupName; | use App\Rules\GroupName; | ||||
use App\User; | use App\User; | ||||
use Illuminate\Http\Request; | use Illuminate\Http\Request; | ||||
use Illuminate\Support\Facades\DB; | use Illuminate\Support\Facades\DB; | ||||
use Illuminate\Support\Facades\Validator; | use Illuminate\Support\Facades\Validator; | ||||
class GroupsController extends Controller | class GroupsController extends Controller | ||||
{ | { | ||||
/** @var array Common object properties in the API response */ | /** @var array Common object properties in the API response */ | ||||
protected static $objectProps = ['email', 'name', 'status']; | protected static $objectProps = ['email', 'name']; | ||||
/** | /** | ||||
* Show the form for creating a new group. | * Show the form for creating a new group. | ||||
* | * | ||||
* @return \Illuminate\Http\JsonResponse | * @return \Illuminate\Http\JsonResponse | ||||
*/ | */ | ||||
public function create() | public function create() | ||||
▲ Show 20 Lines • Show All 463 Lines • Show Last 20 Lines |