Skip to content

Commit

Permalink
Update Controller to remove sleep for demo GIF
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeroen Nijhuis authored Sep 14, 2018
1 parent 2a5103c commit daad6a3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Http/Controllers/AjaxController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ class AjaxController extends Controller
{
public function validate(NovaRequest $request)
{
sleep(2);
$query = $request->model()->where($request->attribute, $request->value);

if ($request->has('id')) {
Expand All @@ -20,4 +19,4 @@ public function validate(NovaRequest $request)

return response()->json(['result' => $count == 0]);
}
}
}

0 comments on commit daad6a3

Please sign in to comment.