請問,為什么老師第一次提交的時候就會有1001這個ID,但是我提交雖然報錯一樣,但沒有這個ID,并且之后添加了,也依然報這個錯?有能幫著解答的大神么?可以加好友有償~感謝
2017-04-20
BadMethodCallException in Controller.php line 105:
Method[validator] does not exit.
Method[validator] does not exit.
2017-04-14
Type error: Argument 1 passed to Illuminate\Http\RedirectResponse::withInput() must be of the type array, object given, called in D:\phpStudy\WWW\laravel\app\Http\Controllers\StudentController.php,報這個錯誤可以在控制器這樣寫return redirect()->back()->withErrors($validator)->withInput($request->input());
2017-04-08
Type error: Argument 1 passed to Illuminate\Http\RedirectResponse::withInput() must be of the type array, object given, called in D:\phpStudy\WWW\laravel\app\Http\Controllers\StudentController.php on line 62
求解,求解
求解,求解
2017-04-08
<input type="text" name="Student[age]"
value="{{ isset($student->age) ? $student->age : old('Student')['age'] }}"
class="form-control" id="age" placeholder="請輸入學生年齡">
value="{{ isset($student->age) ? $student->age : old('Student')['age'] }}"
class="form-control" id="age" placeholder="請輸入學生年齡">
2017-04-03
<input type="radio" name="Student[sex]" value="20"
@if(isset($student->sex) && $student->sex == 20)
checked=""
@else
''
@endif
> 女
@if(isset($student->sex) && $student->sex == 20)
checked=""
@else
''
@endif
> 女
2017-04-03