/** * Deletes all the entities from the repository * * @return mixed */ public function clear() { User::all()->each(function ($user) { $user->delete(); }); }