1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Goodoneuz\PayUz\Http\Controllers; |
4
|
|
|
|
5
|
|
|
use Illuminate\Http\Request; |
6
|
|
|
use Goodoneuz\PayUz\Models\Project; |
7
|
|
|
use App\Http\Controllers\Controller; |
8
|
|
|
|
9
|
|
|
class ProjectController extends Controller |
10
|
|
|
{ |
11
|
|
|
|
12
|
|
|
/** |
13
|
|
|
* Display a listing of the resource. |
14
|
|
|
* |
15
|
|
|
* @return \Illuminate\Http\Response |
16
|
|
|
*/ |
17
|
|
|
public function index() |
18
|
|
|
{ |
19
|
|
|
$projects = Project::latest()->get(); |
20
|
|
|
return view('pay-uz::projects.index',compact('projects')); |
21
|
|
|
} |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* Show the form for creating a new resource. |
25
|
|
|
* |
26
|
|
|
* @return \Illuminate\Http\Response |
27
|
|
|
*/ |
28
|
|
|
public function create() |
29
|
|
|
{ |
30
|
|
|
// |
31
|
|
|
} |
32
|
|
|
|
33
|
|
|
/** |
34
|
|
|
* Store a newly created resource in storage. |
35
|
|
|
* |
36
|
|
|
* @param \Illuminate\Http\Request $request |
37
|
|
|
* @return \Illuminate\Http\Response |
38
|
|
|
*/ |
39
|
|
|
public function store(Request $request) |
40
|
|
|
{ |
41
|
|
|
// |
42
|
|
|
} |
43
|
|
|
|
44
|
|
|
/** |
45
|
|
|
* Display the specified resource. |
46
|
|
|
* |
47
|
|
|
* @param int $id |
48
|
|
|
* @return \Illuminate\Http\Response |
49
|
|
|
*/ |
50
|
|
|
public function show($id) |
51
|
|
|
{ |
52
|
|
|
// |
53
|
|
|
} |
54
|
|
|
|
55
|
|
|
/** |
56
|
|
|
* Show the form for editing the specified resource. |
57
|
|
|
* |
58
|
|
|
* @param int $id |
59
|
|
|
* @return \Illuminate\Http\Response |
60
|
|
|
*/ |
61
|
|
|
public function edit($id) |
62
|
|
|
{ |
63
|
|
|
// |
64
|
|
|
} |
65
|
|
|
|
66
|
|
|
/** |
67
|
|
|
* Update the specified resource in storage. |
68
|
|
|
* |
69
|
|
|
* @param \Illuminate\Http\Request $request |
70
|
|
|
* @param int $id |
71
|
|
|
* @return \Illuminate\Http\Response |
72
|
|
|
*/ |
73
|
|
|
public function update(Request $request, $id) |
74
|
|
|
{ |
75
|
|
|
// |
76
|
|
|
} |
77
|
|
|
|
78
|
|
|
/** |
79
|
|
|
* Remove the specified resource from storage. |
80
|
|
|
* |
81
|
|
|
* @param int $id |
82
|
|
|
* @return \Illuminate\Http\Response |
83
|
|
|
*/ |
84
|
|
|
public function destroy($id) |
85
|
|
|
{ |
86
|
|
|
// |
87
|
|
|
} |
88
|
|
|
} |
89
|
|
|
|