@@ 56-63 (lines=8) @@ | ||
53 | } |
|
54 | ||
55 | ||
56 | public function postUnLock(Request $request){ |
|
57 | ||
58 | $model = $this->model->findOrFail($request->get('id')); |
|
59 | $model->nb_of_try = 0; |
|
60 | $model->save(); |
|
61 | ||
62 | return redirect()->back(); |
|
63 | } |
|
64 | ||
65 | ||
66 | public function postLock(Request $request){ |
|
@@ 66-73 (lines=8) @@ | ||
63 | } |
|
64 | ||
65 | ||
66 | public function postLock(Request $request){ |
|
67 | ||
68 | $model = $this->model->findOrFail($request->get('id')); |
|
69 | $model->nb_of_try = config('expendable.auth.nb_of_try'); |
|
70 | $model->save(); |
|
71 | ||
72 | return redirect()->back(); |
|
73 | } |
|
74 | ||
75 | } |