Total Complexity | 3 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class SettingsController extends Controller |
||
11 | { |
||
12 | /** |
||
13 | * Create a new controller instance. |
||
14 | */ |
||
15 | public function __construct() |
||
16 | { |
||
17 | $this->middleware('auth'); |
||
18 | $this->middleware('can.admin'); |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * Show the form for editing the specified resource. |
||
23 | * |
||
24 | * @return \Illuminate\View\View |
||
25 | */ |
||
26 | public function edit() |
||
27 | { |
||
28 | return view('settings.edit'); |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * Update the specified resource in storage. |
||
33 | * |
||
34 | * @param \App\Http\Requests\Settings\UpdateRequest $request |
||
35 | * |
||
36 | * @return \Illuminate\Http\RedirectResponse |
||
37 | */ |
||
38 | public function update(UpdateRequest $request) |
||
47 | } |
||
48 | } |
||
49 |