mirror of
				https://github.com/v2board/v2board.git
				synced 2025-11-01 01:41:47 +08:00 
			
		
		
		
	optimization: validated
This commit is contained in:
		| @@ -20,7 +20,7 @@ class TutorialController extends Controller | ||||
|  | ||||
|     public function save(TutorialSave $request) | ||||
|     { | ||||
|         $params = $request->only(array_keys(TutorialSave::RULES)); | ||||
|         $params = $request->validated(); | ||||
|  | ||||
|         if (!$request->input('id')) { | ||||
|             if (!Tutorial::create($params)) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user