Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
37 | public function store(StoreRoleRequest $request) |
||
38 | { |
||
39 | $roleData = $request->roleFillData(); |
||
40 | $rolePermissions = $request->get('permissions'); |
||
41 | $role = $this->storeRoleWithPermissions($roleData, $rolePermissions); |
||
42 | |||
43 | return response()->json([ |
||
44 | 'code' => 201, |
||
45 | 'status' => 'created', |
||
46 | 'message' => 'Success created new role.', |
||
47 | 'role' => $role, |
||
48 | ], 201); |
||
49 | } |
||
51 |