1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace plunner\Http\Controllers\Companies\Groups; |
4
|
|
|
|
5
|
|
|
use Illuminate\Http\Request; |
6
|
|
|
use plunner\Company; |
7
|
|
|
use plunner\Employee; |
8
|
|
|
use plunner\Http\Controllers\Controller; |
9
|
|
|
use plunner\Http\Requests\Companies\EmployeeRequest; |
10
|
|
|
|
11
|
|
|
|
12
|
|
|
class PlannersController extends Controller |
13
|
|
|
{ |
14
|
|
|
/** |
15
|
|
|
* @var \plunner\Company |
16
|
|
|
*/ |
17
|
|
|
private $user; |
|
|
|
|
18
|
|
|
|
19
|
|
|
/** |
20
|
|
|
* ExampleController constructor. |
21
|
|
|
*/ |
22
|
|
|
public function __construct() |
23
|
|
|
{ |
24
|
|
|
config(['auth.model' => \plunner\Company::class]); |
25
|
|
|
config(['jwt.user' => \plunner\Company::class]); |
26
|
|
|
$this->middleware('jwt.authandrefresh:mode-cn'); |
27
|
|
|
} |
28
|
|
|
|
29
|
|
|
|
30
|
|
|
/** |
31
|
|
|
* Display a listing of the resource. |
32
|
|
|
* |
33
|
|
|
* @param int $groupId |
34
|
|
|
* @return \Illuminate\Http\Response |
35
|
|
|
*/ |
36
|
|
|
public function index($groupId) |
|
|
|
|
37
|
|
|
{ |
38
|
|
|
// |
39
|
|
|
//TODO remember to use authorize even here |
40
|
|
|
} |
41
|
|
|
|
42
|
|
|
/** |
43
|
|
|
* Store a newly created resource in storage. |
44
|
|
|
* |
45
|
|
|
* @param \Illuminate\Http\Request $request |
46
|
|
|
* @param int $groupId |
47
|
|
|
* @return \Illuminate\Http\Response |
48
|
|
|
*/ |
49
|
|
|
public function store(Request $request, $groupId) |
|
|
|
|
50
|
|
|
{ |
51
|
|
|
// |
52
|
|
|
//TODO remember to use authorize even here |
53
|
|
|
} |
54
|
|
|
|
55
|
|
|
/** |
56
|
|
|
* Display the specified resource. |
57
|
|
|
* |
58
|
|
|
* @param int $groupId |
59
|
|
|
* @param int $employeeId |
60
|
|
|
* @return \Illuminate\Http\Response |
61
|
|
|
*/ |
62
|
|
|
public function show($groupId, $employeeId) |
|
|
|
|
63
|
|
|
{ |
64
|
|
|
// |
65
|
|
|
} |
66
|
|
|
|
67
|
|
|
/** |
68
|
|
|
* Update the specified resource in storage. |
69
|
|
|
* |
70
|
|
|
* @param \Illuminate\Http\Request $request |
71
|
|
|
* @param int $groupId |
72
|
|
|
* @param int $employeeId |
73
|
|
|
* @return \Illuminate\Http\Response |
74
|
|
|
*/ |
75
|
|
|
public function update(Request $request, $groupId, $employeeId) |
|
|
|
|
76
|
|
|
{ |
77
|
|
|
// |
78
|
|
|
} |
79
|
|
|
|
80
|
|
|
/** |
81
|
|
|
* Remove the specified resource from storage. |
82
|
|
|
* |
83
|
|
|
* @param int $groupId |
84
|
|
|
* @param int $employeeId |
85
|
|
|
* @return \Illuminate\Http\Response |
86
|
|
|
*/ |
87
|
|
|
public function destroy($groupId, $employeeId) |
|
|
|
|
88
|
|
|
{ |
89
|
|
|
// |
90
|
|
|
} |
91
|
|
|
} |
92
|
|
|
|
This check marks private properties in classes that are never used. Those properties can be removed.