tissue/app/Http/Controllers/SettingController.php

39 lines
1014 B
PHP
Raw Normal View History

<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Validator;
class SettingController extends Controller
{
public function profile()
{
return view('setting.profile');
}
2018-12-30 23:19:52 +09:00
public function updateProfile()
{
abort(501);
}
public function updatePrivacy(Request $request)
2018-12-30 23:19:52 +09:00
{
$inputs = $request->all(['is_protected', 'accept_analytics']);
$user = Auth::user();
$user->is_protected = $inputs['is_protected'] ?? false;
$user->accept_analytics = $inputs['accept_analytics'] ?? false;
$user->save();
return redirect()->route('setting')->with('status', 'プライバシー設定を更新しました。');
2018-12-30 23:19:52 +09:00
}
// ( ◠‿◠ )☛ここに気づいたか・・・消えてもらう ▂▅▇█▓▒░(’ω’)░▒▓█▇▅▂うわあああああああ
// public function password()
// {
// abort(501);
// }
}