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