コントローラ内で実装されていた改行コードの正規化を削除
This commit is contained in:
parent
a35b58eb47
commit
df3826a6d4
@ -30,9 +30,6 @@ class EjaculationController extends Controller
|
|||||||
public function store(Request $request)
|
public function store(Request $request)
|
||||||
{
|
{
|
||||||
$inputs = $request->all();
|
$inputs = $request->all();
|
||||||
if ($request->has('note')) {
|
|
||||||
$inputs['note'] = str_replace(["\r\n", "\r"], "\n", $inputs['note']);
|
|
||||||
}
|
|
||||||
|
|
||||||
$validator = Validator::make($inputs, [
|
$validator = Validator::make($inputs, [
|
||||||
'date' => 'required|date_format:Y/m/d',
|
'date' => 'required|date_format:Y/m/d',
|
||||||
@ -113,9 +110,6 @@ class EjaculationController extends Controller
|
|||||||
$ejaculation = Ejaculation::findOrFail($id);
|
$ejaculation = Ejaculation::findOrFail($id);
|
||||||
|
|
||||||
$inputs = $request->all();
|
$inputs = $request->all();
|
||||||
if ($request->has('note')) {
|
|
||||||
$inputs['note'] = str_replace(["\r\n", "\r"], "\n", $inputs['note']);
|
|
||||||
}
|
|
||||||
|
|
||||||
$validator = Validator::make($inputs, [
|
$validator = Validator::make($inputs, [
|
||||||
'date' => 'required|date_format:Y/m/d',
|
'date' => 'required|date_format:Y/m/d',
|
||||||
|
Loading…
Reference in New Issue
Block a user